#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main() {
string str;
char search;
int found;
cin >> search;
cin >> str;
found = count(str.begin(), str.end(), search);
cout << found << " " << search << "'s" << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8YWxnb3JpdGhtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgICBzdHJpbmcgc3RyOwogICAgY2hhciBzZWFyY2g7CiAgICBpbnQgZm91bmQ7CgogICAgY2luID4+IHNlYXJjaDsKICAgIGNpbiA+PiBzdHI7CgogICAgZm91bmQgPSBjb3VudChzdHIuYmVnaW4oKSwgc3RyLmVuZCgpLCBzZWFyY2gpOwoKICAgIGNvdXQgPDwgZm91bmQgPDwgIiAiIDw8IHNlYXJjaCA8PCAiJ3MiIDw8IGVuZGw7CgogICAgcmV0dXJuIDA7Cn0=