import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
	    
		String x = "";
		try {
			x = in.readLine();
			
			String tmp = "";
			for (int i = 0; i < x.length(); i++) {
				tmp = tmp + x.charAt(x.length() - i - 1);
			}
			System.out.println(tmp);
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args) {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
	    
		String x = "";
		try {
			x = in.readLine();
			
			String tmp = "";
			for (int i = 0; i < x.length(); i++) {
				tmp = tmp + x.charAt(x.length() - i - 1);
			}
			System.out.println(tmp);
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
} Main public static void main(String[] args) {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
	    
		String x = "";
		try {
			x = in.readLine();
			
			String tmp = "";
			for (int i = 0; i < x.length(); i++) {
				tmp = tmp + x.charAt(x.length() - i - 1);
			}
			System.out.println(tmp);
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	} main {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
	    
		String x = "";
		try {
			x = in.readLine();
			
			String tmp = "";
			for (int i = 0; i < x.length(); i++) {
				tmp = tmp + x.charAt(x.length() - i - 1);
			}
			System.out.println(tmp);
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String x = ""; x "" try {
			x = in.readLine();
			
			String tmp = "";
			for (int i = 0; i < x.length(); i++) {
				tmp = tmp + x.charAt(x.length() - i - 1);
			}
			System.out.println(tmp);
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} NumberFormatException e {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} IOException e {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			x = in.readLine();
			
			String tmp = "";
			for (int i = 0; i < x.length(); i++) {
				tmp = tmp + x.charAt(x.length() - i - 1);
			}
			System.out.println(tmp);
		} x = in.readLine() x in.readLine() in.readLine in String tmp = ""; tmp "" for (int i = 0; i < x.length(); i++) {
				tmp = tmp + x.charAt(x.length() - i - 1);
			} int i = 0; int i = 0; i 0 i < x.length() i x.length() x.length x i++ i++ i {
				tmp = tmp + x.charAt(x.length() - i - 1);
			} {
				tmp = tmp + x.charAt(x.length() - i - 1);
			} tmp = tmp + x.charAt(x.length() - i - 1) tmp tmp + x.charAt(x.length() - i - 1) tmp x.charAt(x.length() - i - 1) x.charAt x x.length() - i - 1 x.length() - i - 1 x.length() x.length x i 1 System.out.println(tmp) System.out.println System.out System System.out tmp String[] args args public class Main {
	public static void main(String[] args) {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
	    
		String x = "";
		try {
			x = in.readLine();
			
			String tmp = "";
			for (int i = 0; i < x.length(); i++) {
				tmp = tmp + x.charAt(x.length() - i - 1);
			}
			System.out.println(tmp);
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
} public class Main {
	public static void main(String[] args) {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
	    
		String x = "";
		try {
			x = in.readLine();
			
			String tmp = "";
			for (int i = 0; i < x.length(); i++) {
				tmp = tmp + x.charAt(x.length() - i - 1);
			}
			System.out.println(tmp);
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
	    
		String x = "";
		try {
			x = in.readLine();
			
			String tmp = "";
			for (int i = 0; i < x.length(); i++) {
				tmp = tmp + x.charAt(x.length() - i - 1);
			}
			System.out.println(tmp);
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}