import java.util.*;

class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
String str=sc.next();
char[] c=new char[str.length()];
for(int i=0;i<str.length();i++){
c[i]=str.charAt(i);
}
for(int i=str.length()-1;i>=0;i--){
System.out.print(c[i]);
}
System.out.print("\n");
}
} import java.util.*; util.* java class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
String str=sc.next();
char[] c=new char[str.length()];
for(int i=0;i<str.length();i++){
c[i]=str.charAt(i);
}
for(int i=str.length()-1;i>=0;i--){
System.out.print(c[i]);
}
System.out.print("\n");
}
} Main public static void main(String[] args){
Scanner sc=new Scanner(System.in);
String str=sc.next();
char[] c=new char[str.length()];
for(int i=0;i<str.length();i++){
c[i]=str.charAt(i);
}
for(int i=str.length()-1;i>=0;i--){
System.out.print(c[i]);
}
System.out.print("\n");
} main {
Scanner sc=new Scanner(System.in);
String str=sc.next();
char[] c=new char[str.length()];
for(int i=0;i<str.length();i++){
c[i]=str.charAt(i);
}
for(int i=str.length()-1;i>=0;i--){
System.out.print(c[i]);
}
System.out.print("\n");
} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) String str=sc.next(); str sc.next() sc.next sc char[] c=new char[str.length()]; c new char[str.length()] str.length() str.length str for(int i=0;i<str.length();i++){
c[i]=str.charAt(i);
} int i=0; int i=0; i 0 i<str.length() i str.length() str.length str i++ i++ i {
c[i]=str.charAt(i);
} {
c[i]=str.charAt(i);
} c[i]=str.charAt(i) c[i] c i str.charAt(i) str.charAt str i for(int i=str.length()-1;i>=0;i--){
System.out.print(c[i]);
} int i=str.length()-1; int i=str.length()-1; i str.length()-1 str.length() str.length str 1 i>=0 i 0 i-- i-- i {
System.out.print(c[i]);
} {
System.out.print(c[i]);
} System.out.print(c[i]) System.out.print System.out System System.out c[i] c i System.out.print("\n") System.out.print System.out System System.out "\n" String[] args args
import java.util.*;

class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
String str=sc.next();
char[] c=new char[str.length()];
for(int i=0;i<str.length();i++){
c[i]=str.charAt(i);
}
for(int i=str.length()-1;i>=0;i--){
System.out.print(c[i]);
}
System.out.print("\n");
}
}