#include <iostream>
#include <string>
#include <algorithm>
int main( ) {
std:: string str = "the quick brown fox jumps over the lazy dog" ;
std:: sort ( str.begin ( ) , str.end ( ) ) ;
std:: string strcopy;
std:: unique_copy ( str.begin ( ) , str.end ( ) , back_inserter( strcopy) ) ;
for ( size_t i= 0 ; i< strcopy.length ( ) ; ++ i)
std:: cout << strcopy[ i] << " = " << count( str.begin ( ) , str.end ( ) , strcopy[ i] ) << "\n " ;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8YWxnb3JpdGhtPgoKaW50IG1haW4oKXsKICAgIHN0ZDo6c3RyaW5nIHN0ciA9ICJ0aGUgcXVpY2sgYnJvd24gZm94IGp1bXBzIG92ZXIgdGhlIGxhenkgZG9nIjsKICAgIHN0ZDo6c29ydChzdHIuYmVnaW4oKSwgc3RyLmVuZCgpKTsKICAgIHN0ZDo6c3RyaW5nIHN0cmNvcHk7CiAgICBzdGQ6OnVuaXF1ZV9jb3B5KHN0ci5iZWdpbigpLCBzdHIuZW5kKCksIGJhY2tfaW5zZXJ0ZXIoc3RyY29weSkgKTsKICAgIGZvcihzaXplX3QgaT0wOyBpPHN0cmNvcHkubGVuZ3RoKCk7ICsraSkKCXN0ZDo6Y291dCA8PCBzdHJjb3B5W2ldIDw8ICIgPSAiIDw8ICBjb3VudChzdHIuYmVnaW4oKSwgc3RyLmVuZCgpLCBzdHJjb3B5W2ldKSA8PCAiXG4iOwp9Cg==