#include <bits/stdc++.h>
using namespace std;
int main() {
map<char,int> freq;
string t = "My name is mohammed arif, i read in class 5";
for(int i=0;i<t.size();++i){
if(freq.find(t[i]) == freq.end()){
freq[t[i]] = 0;
}
freq[t[i]]++;
}
for(auto it = freq.begin(); it != freq.end();++it){
cout << it->first << ": " << it->second << endl;
}
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCW1hcDxjaGFyLGludD4gZnJlcTsKCXN0cmluZyB0ID0gIk15IG5hbWUgaXMgbW9oYW1tZWQgYXJpZiwgaSByZWFkIGluIGNsYXNzIDUiOwoJZm9yKGludCBpPTA7aTx0LnNpemUoKTsrK2kpewoJCWlmKGZyZXEuZmluZCh0W2ldKSA9PSBmcmVxLmVuZCgpKXsKCQkJZnJlcVt0W2ldXSA9IDA7CgkJfQoJCWZyZXFbdFtpXV0rKzsKCX0KCWZvcihhdXRvIGl0ID0gZnJlcS5iZWdpbigpOyBpdCAhPSBmcmVxLmVuZCgpOysraXQpewoJCWNvdXQgPDwgaXQtPmZpcnN0IDw8ICI6ICIgPDwgaXQtPnNlY29uZCA8PCBlbmRsOwoJfQoJcmV0dXJuIDA7Cn0=