#include using namespace std; signed main() { string s; cin >> s; for (bool first = true; string p : {"yukari"s, "akari"s, "yuzukizu"s}) { int f[256] = {}, z[256] = {}; for (char c : p) f[c] += 1; for (char c : s) z[c] += 1; int ans = 1e9; for (int i = 0; i < 256; i++) if (f[i]) ans = min(ans, z[i] / f[i]); if (!first) cout << ' '; first = false; cout << ans; } }