import java.io.*;
import java.util.*;
public class Main{
	public static void main(String[] args)throws IOException{
		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
		String s=reader.readLine();
		char[] in=s.toCharArray();
		for(int i=in.length-1;i>=0;i--)System.out.print(in[i]);
		System.out.println();
	}
} import java.io.*; io.* java import java.util.*; util.* java public class Main{
	public static void main(String[] args)throws IOException{
		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
		String s=reader.readLine();
		char[] in=s.toCharArray();
		for(int i=in.length-1;i>=0;i--)System.out.print(in[i]);
		System.out.println();
	}
} Main public static void main(String[] args)throws IOException{
		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
		String s=reader.readLine();
		char[] in=s.toCharArray();
		for(int i=in.length-1;i>=0;i--)System.out.print(in[i]);
		System.out.println();
	} main {
		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
		String s=reader.readLine();
		char[] in=s.toCharArray();
		for(int i=in.length-1;i>=0;i--)System.out.print(in[i]);
		System.out.println();
	} BufferedReader reader=new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) String s=reader.readLine(); s reader.readLine() reader.readLine reader char[] in=s.toCharArray(); in s.toCharArray() s.toCharArray s for(int i=in.length-1;i>=0;i--)System.out.print(in[i]); int i=in.length-1; int i=in.length-1; i in.length-1 in.length in in.length 1 i>=0 i 0 i-- i-- i System.out.print(in[i]); System.out.print(in[i]) System.out.print System.out System System.out in[i] in i System.out.println() System.out.println System.out System System.out String[] args args public class Main{
	public static void main(String[] args)throws IOException{
		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
		String s=reader.readLine();
		char[] in=s.toCharArray();
		for(int i=in.length-1;i>=0;i--)System.out.print(in[i]);
		System.out.println();
	}
} public class Main{
	public static void main(String[] args)throws IOException{
		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
		String s=reader.readLine();
		char[] in=s.toCharArray();
		for(int i=in.length-1;i>=0;i--)System.out.print(in[i]);
		System.out.println();
	}
} Main
import java.io.*;
import java.util.*;
public class Main{
	public static void main(String[] args)throws IOException{
		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
		String s=reader.readLine();
		char[] in=s.toCharArray();
		for(int i=in.length-1;i>=0;i--)System.out.print(in[i]);
		System.out.println();
	}
}