#include <iostream>
#include <cstring>
using namespace std;
char s[256];
int n, i, nrlit=0;
int main()
{
cout << "Textul: "; cin.getline(s,256);
n=strlen(s);
for (i=0; i<n; ++i)
{
if ((s[i]>='A' && s[i]<='Z') || (s[i]>='a' && s[i]<='z')) ++nrlit;
}
cout << "Litere sunt " << nrlit;
}