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

public class Main {

	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = new String();
		str=br.readLine();
		System.out.println(irekae(str));
	}
	
	public static String irekae(String str){
		int i;
		String str2 = new String();;
		StringBuilder sb = new StringBuilder(str2);
		char[]  moji = new char[20];
		
		for(i=0;i<str.length();i++){
			moji[i]=str.charAt(i);
		}
		for(i=0;i<str.length();i++){
			sb.append(moji[str.length()-i-1]);
		}
		return sb.toString();
	}

} 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) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = new String();
		str=br.readLine();
		System.out.println(irekae(str));
	}
	
	public static String irekae(String str){
		int i;
		String str2 = new String();;
		StringBuilder sb = new StringBuilder(str2);
		char[]  moji = new char[20];
		
		for(i=0;i<str.length();i++){
			moji[i]=str.charAt(i);
		}
		for(i=0;i<str.length();i++){
			sb.append(moji[str.length()-i-1]);
		}
		return sb.toString();
	}

} Main public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = new String();
		str=br.readLine();
		System.out.println(irekae(str));
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = new String();
		str=br.readLine();
		System.out.println(irekae(str));
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = new String(); str new String() str=br.readLine() str br.readLine() br.readLine br System.out.println(irekae(str)) System.out.println System.out System System.out irekae(str) irekae str String[] args args public static String irekae(String str){
		int i;
		String str2 = new String();;
		StringBuilder sb = new StringBuilder(str2);
		char[]  moji = new char[20];
		
		for(i=0;i<str.length();i++){
			moji[i]=str.charAt(i);
		}
		for(i=0;i<str.length();i++){
			sb.append(moji[str.length()-i-1]);
		}
		return sb.toString();
	} irekae {
		int i;
		String str2 = new String();;
		StringBuilder sb = new StringBuilder(str2);
		char[]  moji = new char[20];
		
		for(i=0;i<str.length();i++){
			moji[i]=str.charAt(i);
		}
		for(i=0;i<str.length();i++){
			sb.append(moji[str.length()-i-1]);
		}
		return sb.toString();
	} int i; i String str2 = new String(); str2 new String() StringBuilder sb = new StringBuilder(str2); sb new StringBuilder(str2) char[]  moji = new char[20]; moji new char[20] 20 for(i=0;i<str.length();i++){
			moji[i]=str.charAt(i);
		} i=0; i=0 i 0 i<str.length() i str.length() str.length str i++ i++ i {
			moji[i]=str.charAt(i);
		} {
			moji[i]=str.charAt(i);
		} moji[i]=str.charAt(i) moji[i] moji i str.charAt(i) str.charAt str i for(i=0;i<str.length();i++){
			sb.append(moji[str.length()-i-1]);
		} i=0; i=0 i 0 i<str.length() i str.length() str.length str i++ i++ i {
			sb.append(moji[str.length()-i-1]);
		} {
			sb.append(moji[str.length()-i-1]);
		} sb.append(moji[str.length()-i-1]) sb.append sb moji[str.length()-i-1] moji str.length()-i-1 str.length()-i-1 str.length() str.length str i 1 return sb.toString(); sb.toString() sb.toString sb String str str public class Main {

	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = new String();
		str=br.readLine();
		System.out.println(irekae(str));
	}
	
	public static String irekae(String str){
		int i;
		String str2 = new String();;
		StringBuilder sb = new StringBuilder(str2);
		char[]  moji = new char[20];
		
		for(i=0;i<str.length();i++){
			moji[i]=str.charAt(i);
		}
		for(i=0;i<str.length();i++){
			sb.append(moji[str.length()-i-1]);
		}
		return sb.toString();
	}

} public class Main {

	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = new String();
		str=br.readLine();
		System.out.println(irekae(str));
	}
	
	public static String irekae(String str){
		int i;
		String str2 = new String();;
		StringBuilder sb = new StringBuilder(str2);
		char[]  moji = new char[20];
		
		for(i=0;i<str.length();i++){
			moji[i]=str.charAt(i);
		}
		for(i=0;i<str.length();i++){
			sb.append(moji[str.length()-i-1]);
		}
		return sb.toString();
	}

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

public class Main {

	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = new String();
		str=br.readLine();
		System.out.println(irekae(str));
	}
	
	public static String irekae(String str){
		int i;
		String str2 = new String();;
		StringBuilder sb = new StringBuilder(str2);
		char[]  moji = new char[20];
		
		for(i=0;i<str.length();i++){
			moji[i]=str.charAt(i);
		}
		for(i=0;i<str.length();i++){
			sb.append(moji[str.length()-i-1]);
		}
		return sb.toString();
	}

}