#include <iostream>
#include <cstring>
#include <string.h>
#include <string>
using namespace std;
int main()
{
string s;
getline(cin, s);
int letter=0, digit=0, other=0;
int sum = 0;
const char* p = s.c_str();
for (unsigned int i = 0; i <s.size(); i++)
{
if ((*p >= 'a' && *p <= 'z') || (*p >= 'A' && *p <= 'Z'))
{
letter++;
}
else if ((*p >= '0') && (*p <= '9'))
{
digit++;
}
p++;
}
sum = letter + digit;
cout << sum << endl;
return 0;
}
#include <cstring>
#include <string.h>
#include <string>
using namespace std;
int main()
{
string s;
getline(cin, s);
int letter=0, digit=0, other=0;
int sum = 0;
const char* p = s.c_str();
for (unsigned int i = 0; i <s.size(); i++)
{
if ((*p >= 'a' && *p <= 'z') || (*p >= 'A' && *p <= 'Z'))
{
letter++;
}
else if ((*p >= '0') && (*p <= '9'))
{
digit++;
}
p++;
}
sum = letter + digit;
cout << sum << endl;
return 0;
}