import java.io.*;

public class Main{
	public static void main(String[] args){
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try{
		String s;
		while((s = reader.readLine()) != null){
			int n = s.length();
			char[] t = new char[n];
			for(int i = 0;i<n;i++){
				int m = n-1;
				t[m-i] = s.charAt(i);
			}
			for(int j = 0;j<n;j++){
				System.out.print(t[j]);
			}
			System.out.println("");
		}
		}catch(IOException e){
			System.exit(0);
		}
	}
} import java.io.*; io.* java public class Main{
	public static void main(String[] args){
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try{
		String s;
		while((s = reader.readLine()) != null){
			int n = s.length();
			char[] t = new char[n];
			for(int i = 0;i<n;i++){
				int m = n-1;
				t[m-i] = s.charAt(i);
			}
			for(int j = 0;j<n;j++){
				System.out.print(t[j]);
			}
			System.out.println("");
		}
		}catch(IOException e){
			System.exit(0);
		}
	}
} Main public static void main(String[] args){
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try{
		String s;
		while((s = reader.readLine()) != null){
			int n = s.length();
			char[] t = new char[n];
			for(int i = 0;i<n;i++){
				int m = n-1;
				t[m-i] = s.charAt(i);
			}
			for(int j = 0;j<n;j++){
				System.out.print(t[j]);
			}
			System.out.println("");
		}
		}catch(IOException e){
			System.exit(0);
		}
	} main {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try{
		String s;
		while((s = reader.readLine()) != null){
			int n = s.length();
			char[] t = new char[n];
			for(int i = 0;i<n;i++){
				int m = n-1;
				t[m-i] = s.charAt(i);
			}
			for(int j = 0;j<n;j++){
				System.out.print(t[j]);
			}
			System.out.println("");
		}
		}catch(IOException e){
			System.exit(0);
		}
	} BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) try{
		String s;
		while((s = reader.readLine()) != null){
			int n = s.length();
			char[] t = new char[n];
			for(int i = 0;i<n;i++){
				int m = n-1;
				t[m-i] = s.charAt(i);
			}
			for(int j = 0;j<n;j++){
				System.out.print(t[j]);
			}
			System.out.println("");
		}
		}catch(IOException e){
			System.exit(0);
		} catch(IOException e){
			System.exit(0);
		} IOException e {
			System.exit(0);
		} System.exit(0) System.exit System 0 {
		String s;
		while((s = reader.readLine()) != null){
			int n = s.length();
			char[] t = new char[n];
			for(int i = 0;i<n;i++){
				int m = n-1;
				t[m-i] = s.charAt(i);
			}
			for(int j = 0;j<n;j++){
				System.out.print(t[j]);
			}
			System.out.println("");
		}
		} String s; s while((s = reader.readLine()) != null){
			int n = s.length();
			char[] t = new char[n];
			for(int i = 0;i<n;i++){
				int m = n-1;
				t[m-i] = s.charAt(i);
			}
			for(int j = 0;j<n;j++){
				System.out.print(t[j]);
			}
			System.out.println("");
		} (s = reader.readLine()) != null (s = reader.readLine()) s reader.readLine() reader.readLine reader null {
			int n = s.length();
			char[] t = new char[n];
			for(int i = 0;i<n;i++){
				int m = n-1;
				t[m-i] = s.charAt(i);
			}
			for(int j = 0;j<n;j++){
				System.out.print(t[j]);
			}
			System.out.println("");
		} int n = s.length(); n s.length() s.length s char[] t = new char[n]; t new char[n] n for(int i = 0;i<n;i++){
				int m = n-1;
				t[m-i] = s.charAt(i);
			} int i = 0; int i = 0; i 0 i<n i n i++ i++ i {
				int m = n-1;
				t[m-i] = s.charAt(i);
			} {
				int m = n-1;
				t[m-i] = s.charAt(i);
			} int m = n-1; m n-1 n 1 t[m-i] = s.charAt(i) t[m-i] t m-i m i s.charAt(i) s.charAt s i for(int j = 0;j<n;j++){
				System.out.print(t[j]);
			} int j = 0; int j = 0; j 0 j<n j n j++ j++ j {
				System.out.print(t[j]);
			} {
				System.out.print(t[j]);
			} System.out.print(t[j]) System.out.print System.out System System.out t[j] t j System.out.println("") System.out.println System.out System System.out "" String[] args args public class Main{
	public static void main(String[] args){
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try{
		String s;
		while((s = reader.readLine()) != null){
			int n = s.length();
			char[] t = new char[n];
			for(int i = 0;i<n;i++){
				int m = n-1;
				t[m-i] = s.charAt(i);
			}
			for(int j = 0;j<n;j++){
				System.out.print(t[j]);
			}
			System.out.println("");
		}
		}catch(IOException e){
			System.exit(0);
		}
	}
} public class Main{
	public static void main(String[] args){
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try{
		String s;
		while((s = reader.readLine()) != null){
			int n = s.length();
			char[] t = new char[n];
			for(int i = 0;i<n;i++){
				int m = n-1;
				t[m-i] = s.charAt(i);
			}
			for(int j = 0;j<n;j++){
				System.out.print(t[j]);
			}
			System.out.println("");
		}
		}catch(IOException e){
			System.exit(0);
		}
	}
} Main
import java.io.*;

public class Main{
	public static void main(String[] args){
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try{
		String s;
		while((s = reader.readLine()) != null){
			int n = s.length();
			char[] t = new char[n];
			for(int i = 0;i<n;i++){
				int m = n-1;
				t[m-i] = s.charAt(i);
			}
			for(int j = 0;j<n;j++){
				System.out.print(t[j]);
			}
			System.out.println("");
		}
		}catch(IOException e){
			System.exit(0);
		}
	}
}