#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,d; cin>>a; b=a%10; a/=10; c=a%100; d=c+b; cout<<d; return 0; }