#include<bits/stdc++.h>
using namespace std;
int main(){
	int y,a,b,h;
    cin>>y;
    a=y%10;
    b=y/10;
    h=a+b;
    cout<<h;

}

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