#include<bits/stdc++.h>
using namespace std;
int main(){
	int i,x,y;
	cin>>i;
	x=i%10*10;
	y=i/10%10*1;
	cout<<x+y;
}
/**************************************************************
	Problem: 1606
	User: baizhoudeyueguang
	Language: C++
	Result: Accepted
	Time:13 ms
	Memory:2072 kb
****************************************************************/