
import java.util.*;
import java.lang.*;
import java.math.*;

public class Main {
	
	Scanner sc = new Scanner(System.in);
	
	void run() {
		
		String s = sc.next();
		
		StringBuffer strBuf = new StringBuffer(s);
		
		strBuf = strBuf.reverse();
		
		s = strBuf.toString();
		
		System.out.println(s);
		
		
		
	}
	
	public static void main(String[] args) {
		
		new Main().run();
		
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.math.*; math.* java public class Main {
	
	Scanner sc = new Scanner(System.in);
	
	void run() {
		
		String s = sc.next();
		
		StringBuffer strBuf = new StringBuffer(s);
		
		strBuf = strBuf.reverse();
		
		s = strBuf.toString();
		
		System.out.println(s);
		
		
		
	}
	
	public static void main(String[] args) {
		
		new Main().run();
		
	}
} Main Scanner sc = new Scanner(System.in); sc new Scanner(System.in) void run() {
		
		String s = sc.next();
		
		StringBuffer strBuf = new StringBuffer(s);
		
		strBuf = strBuf.reverse();
		
		s = strBuf.toString();
		
		System.out.println(s);
		
		
		
	} run {
		
		String s = sc.next();
		
		StringBuffer strBuf = new StringBuffer(s);
		
		strBuf = strBuf.reverse();
		
		s = strBuf.toString();
		
		System.out.println(s);
		
		
		
	} String s = sc.next(); s sc.next() sc.next sc StringBuffer strBuf = new StringBuffer(s); strBuf new StringBuffer(s) strBuf = strBuf.reverse() strBuf strBuf.reverse() strBuf.reverse strBuf s = strBuf.toString() s strBuf.toString() strBuf.toString strBuf System.out.println(s) System.out.println System.out System System.out s public static void main(String[] args) {
		
		new Main().run();
		
	} main {
		
		new Main().run();
		
	} new Main().run() new Main().run new Main() String[] args args public class Main {
	
	Scanner sc = new Scanner(System.in);
	
	void run() {
		
		String s = sc.next();
		
		StringBuffer strBuf = new StringBuffer(s);
		
		strBuf = strBuf.reverse();
		
		s = strBuf.toString();
		
		System.out.println(s);
		
		
		
	}
	
	public static void main(String[] args) {
		
		new Main().run();
		
	}
} public class Main {
	
	Scanner sc = new Scanner(System.in);
	
	void run() {
		
		String s = sc.next();
		
		StringBuffer strBuf = new StringBuffer(s);
		
		strBuf = strBuf.reverse();
		
		s = strBuf.toString();
		
		System.out.println(s);
		
		
		
	}
	
	public static void main(String[] args) {
		
		new Main().run();
		
	}
} Main

import java.util.*;
import java.lang.*;
import java.math.*;

public class Main {
	
	Scanner sc = new Scanner(System.in);
	
	void run() {
		
		String s = sc.next();
		
		StringBuffer strBuf = new StringBuffer(s);
		
		strBuf = strBuf.reverse();
		
		s = strBuf.toString();
		
		System.out.println(s);
		
		
		
	}
	
	public static void main(String[] args) {
		
		new Main().run();
		
	}
}