#include<iostream>
using namespace std;
int main(){
   int n,s,g;
   cin>>n;   //从键盘读入二位数
   s = n / 10;  //取出十位存放到变量s中
   g = n % 10;  //取出个位存放到变量s中 
   cout<<s + g<<endl; 
}

/**************************************************************
	Problem: 1605
	User: admin
	Language: C++
	Result: Accepted
	Time:9 ms
	Memory:2072 kb
****************************************************************/