#include <bits/stdc++.h>
using namespace std;
int main() {
int x;
cin>>x;
int q=x/100;
int g=x%10;
int h=g+q;
cout<<h<<endl;
return 0;
}
/**************************************************************
Problem: 1614
User: fuhoubin
Language: C++
Result: Accepted
Time:8 ms
Memory:2072 kb
****************************************************************/