#include<iostream> using namespace std; int main(){ int a,s,d; scanf("%1d%1d%1d",&a,&s,&d); cout<<d+s+a; return 0; }