#include<bits/stdc++.h> int main(){ int a[100],b=0,c=0; while(scanf("%d",&a[b])){ b++; } for(c=0;c<=b;c++){ printf("%d",a[b-c]); } return 0; }