#include<iostream> using namespace std; int main() { char a; int l=0, d=0, o=0; do { a=getchar(); if((a>='a'&&a<='z')||(a>='A'&&a<='Z')) l++; else if(a>='0'&&a<='9') d++; else if(a!='?') o++; } while(a!='?'); cout<<"Letters="<<l<<endl<<"Digits="<<d<<endl<<"Others="<<o<<endl; return 0; }