import java.util.*;
import java.io.*;
public class Main {
	Scanner sc;
	PrintWriter pw;
	public static void main(String... args) {
		Main m = new Main();
		m.solve();
		m.close();
	}
	public Main() {
		sc = new Scanner(System.in);
		pw = new PrintWriter(System.out);
	}
	private void close() {
		pw.flush();
		pw.close();
	}
	private void solve() {
		StringBuilder buf = new StringBuilder();
		char[] cr = sc.nextLine().toCharArray();
		for(int i = cr.length - 1; i > -1; i--)
			buf.append(cr[i]);
		pw.println(buf.toString());
	}
} import java.util.*; util.* java import java.io.*; io.* java public class Main {
	Scanner sc;
	PrintWriter pw;
	public static void main(String... args) {
		Main m = new Main();
		m.solve();
		m.close();
	}
	public Main() {
		sc = new Scanner(System.in);
		pw = new PrintWriter(System.out);
	}
	private void close() {
		pw.flush();
		pw.close();
	}
	private void solve() {
		StringBuilder buf = new StringBuilder();
		char[] cr = sc.nextLine().toCharArray();
		for(int i = cr.length - 1; i > -1; i--)
			buf.append(cr[i]);
		pw.println(buf.toString());
	}
} Main Scanner sc; sc PrintWriter pw; pw public static void main(String... args) {
		Main m = new Main();
		m.solve();
		m.close();
	} main {
		Main m = new Main();
		m.solve();
		m.close();
	} Main m = new Main(); m new Main() m.solve() m.solve m m.close() m.close m String... args args public Main() {
		sc = new Scanner(System.in);
		pw = new PrintWriter(System.out);
	} Main {
		sc = new Scanner(System.in);
		pw = new PrintWriter(System.out);
	} sc = new Scanner(System.in) sc new Scanner(System.in) pw = new PrintWriter(System.out) pw new PrintWriter(System.out) private void close() {
		pw.flush();
		pw.close();
	} close {
		pw.flush();
		pw.close();
	} pw.flush() pw.flush pw pw.close() pw.close pw private void solve() {
		StringBuilder buf = new StringBuilder();
		char[] cr = sc.nextLine().toCharArray();
		for(int i = cr.length - 1; i > -1; i--)
			buf.append(cr[i]);
		pw.println(buf.toString());
	} solve {
		StringBuilder buf = new StringBuilder();
		char[] cr = sc.nextLine().toCharArray();
		for(int i = cr.length - 1; i > -1; i--)
			buf.append(cr[i]);
		pw.println(buf.toString());
	} StringBuilder buf = new StringBuilder(); buf new StringBuilder() char[] cr = sc.nextLine().toCharArray(); cr sc.nextLine().toCharArray() sc.nextLine().toCharArray sc.nextLine() sc.nextLine sc for(int i = cr.length - 1; i > -1; i--)
			buf.append(cr[i]); int i = cr.length - 1; int i = cr.length - 1; i cr.length - 1 cr.length cr cr.length 1 i > -1 i -1 1 i-- i-- i buf.append(cr[i]); buf.append(cr[i]) buf.append buf cr[i] cr i pw.println(buf.toString()) pw.println pw buf.toString() buf.toString buf public class Main {
	Scanner sc;
	PrintWriter pw;
	public static void main(String... args) {
		Main m = new Main();
		m.solve();
		m.close();
	}
	public Main() {
		sc = new Scanner(System.in);
		pw = new PrintWriter(System.out);
	}
	private void close() {
		pw.flush();
		pw.close();
	}
	private void solve() {
		StringBuilder buf = new StringBuilder();
		char[] cr = sc.nextLine().toCharArray();
		for(int i = cr.length - 1; i > -1; i--)
			buf.append(cr[i]);
		pw.println(buf.toString());
	}
} public class Main {
	Scanner sc;
	PrintWriter pw;
	public static void main(String... args) {
		Main m = new Main();
		m.solve();
		m.close();
	}
	public Main() {
		sc = new Scanner(System.in);
		pw = new PrintWriter(System.out);
	}
	private void close() {
		pw.flush();
		pw.close();
	}
	private void solve() {
		StringBuilder buf = new StringBuilder();
		char[] cr = sc.nextLine().toCharArray();
		for(int i = cr.length - 1; i > -1; i--)
			buf.append(cr[i]);
		pw.println(buf.toString());
	}
} Main
import java.util.*;
import java.io.*;
public class Main {
	Scanner sc;
	PrintWriter pw;
	public static void main(String... args) {
		Main m = new Main();
		m.solve();
		m.close();
	}
	public Main() {
		sc = new Scanner(System.in);
		pw = new PrintWriter(System.out);
	}
	private void close() {
		pw.flush();
		pw.close();
	}
	private void solve() {
		StringBuilder buf = new StringBuilder();
		char[] cr = sc.nextLine().toCharArray();
		for(int i = cr.length - 1; i > -1; i--)
			buf.append(cr[i]);
		pw.println(buf.toString());
	}
}