import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String str = scan.next();
		
		StringBuilder sb = new StringBuilder(str);
		System.out.println(sb.reverse());
		
	}
} import java.math.BigDecimal; BigDecimal java.math import java.math.RoundingMode; RoundingMode java.math import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String str = scan.next();
		
		StringBuilder sb = new StringBuilder(str);
		System.out.println(sb.reverse());
		
	}
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String str = scan.next();
		
		StringBuilder sb = new StringBuilder(str);
		System.out.println(sb.reverse());
		
	} main {
		Scanner scan = new Scanner(System.in);
		String str = scan.next();
		
		StringBuilder sb = new StringBuilder(str);
		System.out.println(sb.reverse());
		
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String str = scan.next(); str scan.next() scan.next scan StringBuilder sb = new StringBuilder(str); sb new StringBuilder(str) System.out.println(sb.reverse()) System.out.println System.out System System.out sb.reverse() sb.reverse sb String[] args args public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String str = scan.next();
		
		StringBuilder sb = new StringBuilder(str);
		System.out.println(sb.reverse());
		
	}
} public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String str = scan.next();
		
		StringBuilder sb = new StringBuilder(str);
		System.out.println(sb.reverse());
		
	}
} Main
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		String str = scan.next();
		
		StringBuilder sb = new StringBuilder(str);
		System.out.println(sb.reverse());
		
	}
}