#include "stdio.h" int main(void) { int num; scanf("%d",&num); while(num) { printf("%d",num%10); num /= 10; } return 0; }