#include<bits/stdc++.h>
using namespace std;
int main(){
	int x,m,a,c;
	scanf("%d",&x);
	a=x%10;
	c=x/100;
	m=a+c;
	printf("%d",m);
	
} 

/**************************************************************
	Problem: 1614
	User: zhengzihao3
	Language: C++
	Result: Accepted
	Time:8 ms
	Memory:2076 kb
****************************************************************/