#include<bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; // write your code here...... int sum = s.size(); int a = 0, b = 0, c = 0; for (int i = 0; i<sum; i++) { if (s[i] == 'a') { a++; continue; } if (s[i] == 'b') { b++; continue; } if (s[i] == 'c') { c++; continue; } }

cout << a << " " << b << " " << c << endl;

return 0;

}