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