#include using namespace std ; int main(){ char a ; int answer = 0 ; while(1){ cin >> a ; if(a == ' ') break ; answer += (int)a ; } cout << answer << endl ; }