#include<iostream>
#include<string>
#include<cmath>
using namespace std;
int main() {
string s;
getline(cin,s);
int ans=0;
for(auto i : s)
if(i>='A'&&i<='Z')
ans+=i-'A'+1;
else if(i>='a'&&i<='z')
ans+=i-'a'+1;
int t=0,c=0;
while(ans) {
if(ans%2)
c++;
else t++;
ans>>=1;
}
cout<<t<<" "<<c;
return 0;
}