#include <iostream>
#include <string>
#include <cstdlib>
using namespace std;
int main()
{
string foo = "aaaaaaa1";
int count=0;
for (int i=0;i<foo.length();i++)
{
if ( isalpha(foo[i]))
{
count++;
}
}
cout<<count;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8Y3N0ZGxpYj4KCnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgoKaW50IG1haW4oKQp7CiAgICBzdHJpbmcgZm9vID0gImFhYWFhYWExIjsKCiAgICBpbnQgY291bnQ9MDsKCiAgICBmb3IgKGludCBpPTA7aTxmb28ubGVuZ3RoKCk7aSsrKQogICAgewogICAgICAgIGlmICggaXNhbHBoYShmb29baV0pKQogICAgICAgIHsKICAgICAgICAgICAgY291bnQrKzsKICAgICAgICB9CiAgICB9CgogICAgY291dDw8Y291bnQ7Cn0=