#include #include using namespace std; string s; int main() { cin >> s; int cnt = 0; for (int i = 0; i < s.length(); i++) { if (s[i] == 'n') cnt++; } cout << cnt << endl; return 0; }