#include <stdio.h> int main() { char ch[10]; scanf("%s", ch); for(int i = 3; i >=0; i--) { printf("%c", ch[i]); } return 0; }