#include void main(){int i;char ch[26];for(i=0;i<26;i++)scanf("%c",&ch[i]);for(i=25;i>=0;i--)printf("%c",ch[i]);}