import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
class Main{
    public static void main(String args[]){
	try{
	    InputStreamReader is = new InputStreamReader(System.in);
	    BufferedReader br = new BufferedReader(is);
	    String str = br.readLine();
	    char[] cary = str.toCharArray();
	    for(int i=(cary.length-1);i>=0;i--){
		System.out.print(cary[i]);
	    }
	    System.out.print("\n");

	}
	catch(Exception e){
	    System.exit(0);
	}
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util class Main{
    public static void main(String args[]){
	try{
	    InputStreamReader is = new InputStreamReader(System.in);
	    BufferedReader br = new BufferedReader(is);
	    String str = br.readLine();
	    char[] cary = str.toCharArray();
	    for(int i=(cary.length-1);i>=0;i--){
		System.out.print(cary[i]);
	    }
	    System.out.print("\n");

	}
	catch(Exception e){
	    System.exit(0);
	}
    }
} Main public static void main(String args[]){
	try{
	    InputStreamReader is = new InputStreamReader(System.in);
	    BufferedReader br = new BufferedReader(is);
	    String str = br.readLine();
	    char[] cary = str.toCharArray();
	    for(int i=(cary.length-1);i>=0;i--){
		System.out.print(cary[i]);
	    }
	    System.out.print("\n");

	}
	catch(Exception e){
	    System.exit(0);
	}
    } main {
	try{
	    InputStreamReader is = new InputStreamReader(System.in);
	    BufferedReader br = new BufferedReader(is);
	    String str = br.readLine();
	    char[] cary = str.toCharArray();
	    for(int i=(cary.length-1);i>=0;i--){
		System.out.print(cary[i]);
	    }
	    System.out.print("\n");

	}
	catch(Exception e){
	    System.exit(0);
	}
    } try{
	    InputStreamReader is = new InputStreamReader(System.in);
	    BufferedReader br = new BufferedReader(is);
	    String str = br.readLine();
	    char[] cary = str.toCharArray();
	    for(int i=(cary.length-1);i>=0;i--){
		System.out.print(cary[i]);
	    }
	    System.out.print("\n");

	}
	catch(Exception e){
	    System.exit(0);
	} catch(Exception e){
	    System.exit(0);
	} Exception e {
	    System.exit(0);
	} System.exit(0) System.exit System 0 {
	    InputStreamReader is = new InputStreamReader(System.in);
	    BufferedReader br = new BufferedReader(is);
	    String str = br.readLine();
	    char[] cary = str.toCharArray();
	    for(int i=(cary.length-1);i>=0;i--){
		System.out.print(cary[i]);
	    }
	    System.out.print("\n");

	} InputStreamReader is = new InputStreamReader(System.in); is new InputStreamReader(System.in) BufferedReader br = new BufferedReader(is); br new BufferedReader(is) String str = br.readLine(); str br.readLine() br.readLine br char[] cary = str.toCharArray(); cary str.toCharArray() str.toCharArray str for(int i=(cary.length-1);i>=0;i--){
		System.out.print(cary[i]);
	    } int i=(cary.length-1); int i=(cary.length-1); i (cary.length-1) cary.length cary cary.length 1 i>=0 i 0 i-- i-- i {
		System.out.print(cary[i]);
	    } {
		System.out.print(cary[i]);
	    } System.out.print(cary[i]) System.out.print System.out System System.out cary[i] cary i System.out.print("\n") System.out.print System.out System System.out "\n" String args[] args
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
class Main{
    public static void main(String args[]){
	try{
	    InputStreamReader is = new InputStreamReader(System.in);
	    BufferedReader br = new BufferedReader(is);
	    String str = br.readLine();
	    char[] cary = str.toCharArray();
	    for(int i=(cary.length-1);i>=0;i--){
		System.out.print(cary[i]);
	    }
	    System.out.print("\n");

	}
	catch(Exception e){
	    System.exit(0);
	}
    }
}