#include<bits/stdc++.h> 
using namespace std;
int main(){
	int x;
	cin>>x;
	cout<<x%10*1+x/100*10; 
	
}
/**************************************************************
	Problem: 1615
	User: lvrenxiang
	Language: C++
	Result: Accepted
	Time:9 ms
	Memory:2072 kb
****************************************************************/