#include using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); string s; cin >> s; vector ap(26); for(auto &c : s) ap.at(c-'a')++; string Yuzuki = "yukari",Kizuna = "akari",Kawaii = "yuzukizu"; int low = 0,high = s.size(); while(high-low > 1){ int mid = (low+high)/2; bool ok = true; for(auto &c : Yuzuki){ ap.at(c-'a') -= mid; if(ap.at(c-'a') < 0) ok = false; } for(auto &c : Yuzuki) ap.at(c-'a') += mid; if(ok) low = mid; else high = mid; } cout << low << " "; low = 0,high = s.size(); while(high-low > 1){ int mid = (low+high)/2; bool ok = true; for(auto &c : Kizuna){ ap.at(c-'a') -= mid; if(ap.at(c-'a') < 0) ok = false; } for(auto &c : Kizuna) ap.at(c-'a') += mid; if(ok) low = mid; else high = mid; } cout << low << " "; low = 0,high = s.size(); while(high-low > 1){ int mid = (low+high)/2; bool ok = true; for(auto &c : Kawaii){ ap.at(c-'a') -= mid; if(ap.at(c-'a') < 0) ok = false; } for(auto &c : Kawaii) ap.at(c-'a') += mid; if(ok) low = mid; else high = mid; } cout << low << endl; //結月ゆかり紲星あかり誕生日おめでとう~. }