import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;

public class Main {
	public static void main(String[] args){
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		ArrayList<String> list = new ArrayList<String>();
		try {
			//文字列の入力
			String str = br.readLine();

			//i番目の文字をArrayListに追加
			for(int i=0; i<str.length(); i++){
				list.add(str.substring(i,i+1));
			}

			//逆順に並び替える
			Collections.reverse(list);

			//出力
			for(String s : list){
				System.out.print(s);
			}
			System.out.println("");	//改行

		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util public class Main {
	public static void main(String[] args){
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		ArrayList<String> list = new ArrayList<String>();
		try {
			//文字列の入力
			String str = br.readLine();

			//i番目の文字をArrayListに追加
			for(int i=0; i<str.length(); i++){
				list.add(str.substring(i,i+1));
			}

			//逆順に並び替える
			Collections.reverse(list);

			//出力
			for(String s : list){
				System.out.print(s);
			}
			System.out.println("");	//改行

		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} Main public static void main(String[] args){
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		ArrayList<String> list = new ArrayList<String>();
		try {
			//文字列の入力
			String str = br.readLine();

			//i番目の文字をArrayListに追加
			for(int i=0; i<str.length(); i++){
				list.add(str.substring(i,i+1));
			}

			//逆順に並び替える
			Collections.reverse(list);

			//出力
			for(String s : list){
				System.out.print(s);
			}
			System.out.println("");	//改行

		} catch (IOException e) {
			e.printStackTrace();
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		ArrayList<String> list = new ArrayList<String>();
		try {
			//文字列の入力
			String str = br.readLine();

			//i番目の文字をArrayListに追加
			for(int i=0; i<str.length(); i++){
				list.add(str.substring(i,i+1));
			}

			//逆順に並び替える
			Collections.reverse(list);

			//出力
			for(String s : list){
				System.out.print(s);
			}
			System.out.println("");	//改行

		} catch (IOException e) {
			e.printStackTrace();
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) ArrayList<String> list = new ArrayList<String>(); list new ArrayList<String>() try {
			//文字列の入力
			String str = br.readLine();

			//i番目の文字をArrayListに追加
			for(int i=0; i<str.length(); i++){
				list.add(str.substring(i,i+1));
			}

			//逆順に並び替える
			Collections.reverse(list);

			//出力
			for(String s : list){
				System.out.print(s);
			}
			System.out.println("");	//改行

		} catch (IOException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} IOException e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			//文字列の入力
			String str = br.readLine();

			//i番目の文字をArrayListに追加
			for(int i=0; i<str.length(); i++){
				list.add(str.substring(i,i+1));
			}

			//逆順に並び替える
			Collections.reverse(list);

			//出力
			for(String s : list){
				System.out.print(s);
			}
			System.out.println("");	//改行

		} String str = br.readLine(); str br.readLine() br.readLine br for(int i=0; i<str.length(); i++){
				list.add(str.substring(i,i+1));
			} int i=0; int i=0; i 0 i<str.length() i str.length() str.length str i++ i++ i {
				list.add(str.substring(i,i+1));
			} {
				list.add(str.substring(i,i+1));
			} list.add(str.substring(i,i+1)) list.add list str.substring(i,i+1) str.substring str i i+1 i 1 Collections.reverse(list) Collections.reverse Collections list for(String s : list){
				System.out.print(s);
			} String s list {
				System.out.print(s);
			} {
				System.out.print(s);
			} System.out.print(s) System.out.print System.out System System.out s System.out.println("") System.out.println System.out System System.out "" String[] args args public class Main {
	public static void main(String[] args){
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		ArrayList<String> list = new ArrayList<String>();
		try {
			//文字列の入力
			String str = br.readLine();

			//i番目の文字をArrayListに追加
			for(int i=0; i<str.length(); i++){
				list.add(str.substring(i,i+1));
			}

			//逆順に並び替える
			Collections.reverse(list);

			//出力
			for(String s : list){
				System.out.print(s);
			}
			System.out.println("");	//改行

		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} public class Main {
	public static void main(String[] args){
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		ArrayList<String> list = new ArrayList<String>();
		try {
			//文字列の入力
			String str = br.readLine();

			//i番目の文字をArrayListに追加
			for(int i=0; i<str.length(); i++){
				list.add(str.substring(i,i+1));
			}

			//逆順に並び替える
			Collections.reverse(list);

			//出力
			for(String s : list){
				System.out.print(s);
			}
			System.out.println("");	//改行

		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;

public class Main {
	public static void main(String[] args){
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		ArrayList<String> list = new ArrayList<String>();
		try {
			//文字列の入力
			String str = br.readLine();

			//i番目の文字をArrayListに追加
			for(int i=0; i<str.length(); i++){
				list.add(str.substring(i,i+1));
			}

			//逆順に並び替える
			Collections.reverse(list);

			//出力
			for(String s : list){
				System.out.print(s);
			}
			System.out.println("");	//改行

		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}