#include <bits/stdc++.h>
using namespace std;
int main()
{
string s;
getline(cin,s);
int sum = 0;
for(int i = 0; i < s.length(); i++)
if(s[i] == ' ')
continue;
}
else
sum += (int)s[i] - 48;
cout << sum;
#include <bits/stdc++.h>
using namespace std;
int main()
{
string s;
getline(cin,s);
int sum = 0;
for(int i = 0; i < s.length(); i++)
{
if(s[i] == ' ')
{
continue;
}
else
{
sum += (int)s[i] - 48;
}
}
cout << sum;
}