#include<bits/stdc++.h>
using namespace std;
int main(){
int n,m,k,l;
cin>>n;
m=n/100;
k=n%100/10*10;
l=n%10*100;
cout<<m+k+l;
}
/**************************************************************
Problem: 1028
User: zhengzihao
Language: C++
Result: Accepted
Time:8 ms
Memory:2072 kb
****************************************************************/