import java.util.*;class Main{public static void main(String[] args){Scanner s=new Scanner(System.in);System.out.println(new StringBuilder(s.next()).reverse());}}