#include<bits/stdc++.h> using namespace std; int main(){ int S,g,sh,bai,z; cin>>S; g=S%10; sh=S/10%10; bai=S/100; z=g*1+sh*10+bai*100+bai*1000+sh*10000+g*100000; cout<<z; } /************************************************************** Problem: 1620 User: wangyiyang Language: C++ Result: Accepted Time:9 ms Memory:2072 kb ****************************************************************/