#include<iostream> using namespace std; int main(){ int a,b; scanf("%3d%1d",&a,&b); //格式化输入 cout<<b<<a<<endl; return 0; }