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