#include using namespace std; int main(){ char a,b; scanf("%c%c",&a,&b); printf("%c%c",b,a); return 0; }