#include "stdafx.h" #include "iostream" using namespace std; int main() { int s,result=0; while (cin>>s) { if ('s'>47&&'s<58') { result+=s; } else return 0; } cout<<result; system("pause"); }