#include<bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; // write your code here...... int count_a=0; int count_b=0; int count_c=0; int i=0; while(s[i]!='\0') { switch(s[i]) { case 'a': count_a+=1; break; case 'b': count_b+=1; break; case 'c': count_c+=1; break; } i+=1; } cout<<count_a<<" "<<count_b<<" "<<count_c; return 0; }