#include<bits/stdc++.h> using namespace std; int main(){ int x,a,b,c,d; cin>>x; a=x%10; b=x/10%10; c=x/100%10; d=x/1000%10; cout<<x+a+b+c+d; } /************************************************************** Problem: 1617 User: baizhoudeyueguang Language: C++ Result: Accepted Time:9 ms Memory:2072 kb ****************************************************************/