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

public class Main {
	public static void main(String[] args) {
		print();
	}

	private static void print() {
		List<String> list = new ArrayList<>();
		StringBuilder sb = new StringBuilder();


		try {
			 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String str = br.readLine();

			while (str != null) {
				String[] nums = str.split("", 0);
				int numsLength = nums.length;
				for(int iNums = 0; iNums <= numsLength - 1; iNums++){
					list.add(nums[iNums]);
				}

				Collections.reverse(list);
				int listLength = list.size();
				for(int j = 0; j <= listLength -1; j++){
					sb.append(list.get(j));
				}

				System.out.println(sb);
				str = br.readLine();
			}
		} 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 import java.util.List; List java.util public class Main {
	public static void main(String[] args) {
		print();
	}

	private static void print() {
		List<String> list = new ArrayList<>();
		StringBuilder sb = new StringBuilder();


		try {
			 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String str = br.readLine();

			while (str != null) {
				String[] nums = str.split("", 0);
				int numsLength = nums.length;
				for(int iNums = 0; iNums <= numsLength - 1; iNums++){
					list.add(nums[iNums]);
				}

				Collections.reverse(list);
				int listLength = list.size();
				for(int j = 0; j <= listLength -1; j++){
					sb.append(list.get(j));
				}

				System.out.println(sb);
				str = br.readLine();
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} Main public static void main(String[] args) {
		print();
	} main {
		print();
	} print() print String[] args args private static void print() {
		List<String> list = new ArrayList<>();
		StringBuilder sb = new StringBuilder();


		try {
			 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String str = br.readLine();

			while (str != null) {
				String[] nums = str.split("", 0);
				int numsLength = nums.length;
				for(int iNums = 0; iNums <= numsLength - 1; iNums++){
					list.add(nums[iNums]);
				}

				Collections.reverse(list);
				int listLength = list.size();
				for(int j = 0; j <= listLength -1; j++){
					sb.append(list.get(j));
				}

				System.out.println(sb);
				str = br.readLine();
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	} print {
		List<String> list = new ArrayList<>();
		StringBuilder sb = new StringBuilder();


		try {
			 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String str = br.readLine();

			while (str != null) {
				String[] nums = str.split("", 0);
				int numsLength = nums.length;
				for(int iNums = 0; iNums <= numsLength - 1; iNums++){
					list.add(nums[iNums]);
				}

				Collections.reverse(list);
				int listLength = list.size();
				for(int j = 0; j <= listLength -1; j++){
					sb.append(list.get(j));
				}

				System.out.println(sb);
				str = br.readLine();
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	} List<String> list = new ArrayList<>(); list new ArrayList<>() StringBuilder sb = new StringBuilder(); sb new StringBuilder() try {
			 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String str = br.readLine();

			while (str != null) {
				String[] nums = str.split("", 0);
				int numsLength = nums.length;
				for(int iNums = 0; iNums <= numsLength - 1; iNums++){
					list.add(nums[iNums]);
				}

				Collections.reverse(list);
				int listLength = list.size();
				for(int j = 0; j <= listLength -1; j++){
					sb.append(list.get(j));
				}

				System.out.println(sb);
				str = br.readLine();
			}
		} catch (IOException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} IOException e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String str = br.readLine();

			while (str != null) {
				String[] nums = str.split("", 0);
				int numsLength = nums.length;
				for(int iNums = 0; iNums <= numsLength - 1; iNums++){
					list.add(nums[iNums]);
				}

				Collections.reverse(list);
				int listLength = list.size();
				for(int j = 0; j <= listLength -1; j++){
					sb.append(list.get(j));
				}

				System.out.println(sb);
				str = br.readLine();
			}
		} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br while (str != null) {
				String[] nums = str.split("", 0);
				int numsLength = nums.length;
				for(int iNums = 0; iNums <= numsLength - 1; iNums++){
					list.add(nums[iNums]);
				}

				Collections.reverse(list);
				int listLength = list.size();
				for(int j = 0; j <= listLength -1; j++){
					sb.append(list.get(j));
				}

				System.out.println(sb);
				str = br.readLine();
			} str != null str null {
				String[] nums = str.split("", 0);
				int numsLength = nums.length;
				for(int iNums = 0; iNums <= numsLength - 1; iNums++){
					list.add(nums[iNums]);
				}

				Collections.reverse(list);
				int listLength = list.size();
				for(int j = 0; j <= listLength -1; j++){
					sb.append(list.get(j));
				}

				System.out.println(sb);
				str = br.readLine();
			} String[] nums = str.split("", 0); nums str.split("", 0) str.split str "" 0 int numsLength = nums.length; numsLength nums.length nums nums.length for(int iNums = 0; iNums <= numsLength - 1; iNums++){
					list.add(nums[iNums]);
				} int iNums = 0; int iNums = 0; iNums 0 iNums <= numsLength - 1 iNums numsLength - 1 numsLength 1 iNums++ iNums++ iNums {
					list.add(nums[iNums]);
				} {
					list.add(nums[iNums]);
				} list.add(nums[iNums]) list.add list nums[iNums] nums iNums Collections.reverse(list) Collections.reverse Collections list int listLength = list.size(); listLength list.size() list.size list for(int j = 0; j <= listLength -1; j++){
					sb.append(list.get(j));
				} int j = 0; int j = 0; j 0 j <= listLength -1 j listLength -1 listLength 1 j++ j++ j {
					sb.append(list.get(j));
				} {
					sb.append(list.get(j));
				} sb.append(list.get(j)) sb.append sb list.get(j) list.get list j System.out.println(sb) System.out.println System.out System System.out sb str = br.readLine() str br.readLine() br.readLine br public class Main {
	public static void main(String[] args) {
		print();
	}

	private static void print() {
		List<String> list = new ArrayList<>();
		StringBuilder sb = new StringBuilder();


		try {
			 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String str = br.readLine();

			while (str != null) {
				String[] nums = str.split("", 0);
				int numsLength = nums.length;
				for(int iNums = 0; iNums <= numsLength - 1; iNums++){
					list.add(nums[iNums]);
				}

				Collections.reverse(list);
				int listLength = list.size();
				for(int j = 0; j <= listLength -1; j++){
					sb.append(list.get(j));
				}

				System.out.println(sb);
				str = br.readLine();
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} public class Main {
	public static void main(String[] args) {
		print();
	}

	private static void print() {
		List<String> list = new ArrayList<>();
		StringBuilder sb = new StringBuilder();


		try {
			 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String str = br.readLine();

			while (str != null) {
				String[] nums = str.split("", 0);
				int numsLength = nums.length;
				for(int iNums = 0; iNums <= numsLength - 1; iNums++){
					list.add(nums[iNums]);
				}

				Collections.reverse(list);
				int listLength = list.size();
				for(int j = 0; j <= listLength -1; j++){
					sb.append(list.get(j));
				}

				System.out.println(sb);
				str = br.readLine();
			}
		} 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;
import java.util.List;

public class Main {
	public static void main(String[] args) {
		print();
	}

	private static void print() {
		List<String> list = new ArrayList<>();
		StringBuilder sb = new StringBuilder();


		try {
			 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			String str = br.readLine();

			while (str != null) {
				String[] nums = str.split("", 0);
				int numsLength = nums.length;
				for(int iNums = 0; iNums <= numsLength - 1; iNums++){
					list.add(nums[iNums]);
				}

				Collections.reverse(list);
				int listLength = list.size();
				for(int j = 0; j <= listLength -1; j++){
					sb.append(list.get(j));
				}

				System.out.println(sb);
				str = br.readLine();
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}