#include<bits/stdc++.h>
using namespace std;
int main() {
	int x,a=0,b=0,c=0,h=0;
	cin>>x;
	a=x%10;
	c=x/100*10;
	h=a+c;
	cout<<h; 
    return 0;
}
/**************************************************************
	Problem: 1615
	User: linmiaoling
	Language: C++
	Result: Accepted
	Time:10 ms
	Memory:2072 kb
****************************************************************/