#include<bits/stdc++.h>
using namespace std;
int main() {
int x,a,b,h;
scanf("%d",&x);
a=x/100;
b=x%10;
h=a+b;
printf("%d",h);
return 0;
}
/**************************************************************
Problem: 1614
User: huangcanwu
Language: C++
Result: Accepted
Time:8 ms
Memory:2076 kb
****************************************************************/