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