#include <iostream>
using namespace std;
int main()
{
int a;
cin>>a;
a = (a - (a/100)*100) * 10 + a/100;
cout<<a<<endl;
system("PAUSE");
}
#include <iostream>
using namespace std;
int main()
{
int a;
cin>>a;
a = (a - (a/100)*100) * 10 + a/100;
cout<<a<<endl;
system("PAUSE");
}