#include <bits/stdc++.h>
using namespace std;
int main(){
int a=0,b=0,c=0;
string wc;
getline(cin,wc);
for(int i=0;i<wc.length()-1;i++){
if((wc[i]>=97 && wc[i]<=122) || (wc[i]>=65 && wc[i]<=90))a++;
else if(wc[i]>=48 && wc[i]<=57)b++;
else c++;
}
cout<<"Letters="<<a<<endl;
cout<<"Digits="<<b<<endl;
cout<<"Others="<<c<<endl;
return 0;
}