#include<bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; // write your code here...... int hash[3]={0}; string::iterator it=s.begin(); for(;it<s.end();it++) { hash[*it-'a']++; } cout<<hash[0]<<' '<<hash[1]<<' '<<hash[2]; return 0; }