#include <iostream>
#include <cstring>
using namespace std;
int main()
{
string a;
int count=0;
getline(cin,a);
for(int i=0;i<a.size();i++)
{
if(a[i]>='0'&&a[i]<='9')
{
count++;
}
}
cout<<count<<endl;
return 0;
}
#include <cstdio>
#include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
while (n -- )
{
string a, b;
cin >> a >> b;
int x, y;
if (a == "Hunter") x = 0;
else if (a == "Bear") x = 1;
else x = 2;
if (b == "Hunter") y = 0;
else if (b == "Bear") y = 1;
else y = 2;
if (x == y) puts("Tie");
else if (x == (y + 1) % 3) puts("Player1");
else puts("Player2");
}
return 0;
}
#include <cstdio>
#include <iostream>
using namespace std;
int main()
{
string s;
getline(cin,s);
for(int i=0;i<s.size();i++)
{
cout<<s[i]<<" ";
}
return 0;
}
#include <cstdio>
#include <iostream>
using namespace std;
int main()
{
char str[31];
cin>>str;
char c;
scanf("\n%c",&c);
for(int i=0;str[i];i++)
{
if(str[i]==c)
{
str[i]='#';
}
}
puts(str);
return 0;
}
#include <iostream>
using namespace std;
int main()
{
string a, b;
while (cin >> a >> b)
{
int p = 0;
for (int i = 1; i < a.size(); i ++ )
if (a[i] > a[p])
p = i;
cout << a.substr(0, p + 1) + b + a.substr(p + 1) << endl;
}
return 0;
}