>>766
if(islower(c)) cnt[c-'a']++;
if(isupper(c)) cnt[c-'A']++;