public static void main(String[] arg) {
Scanner sc = new Scanner(System.in);
String s = sc.nextLine();
int n = s.length();
int n2 = 0;
int count = 0;
if(n%2 == 1){
n2 = n/2 +1;
}else {
n2 = n/2;
}
int arr[] = new int[n];
for(int i = 0;i<n2;i++){
arr[count++] = Integer.parseInt(s.substring(i,i+1));
}
// 增加偶数情况处理
if(n%2 == 1){
for (int i = n2-2;i>=0;i--){
arr[count++] = arr[i];
}
}else{
for (int i = n2-1;i>=0;i--){
arr[count++] = arr[i];
}
}
for (int i =0;i<n;i++){
System.out.print(arr[i]);
}
}