#include #include int main() { using namespace std; string s; cin >> s; int r = 0; for (const char c: s) { if (c == 'n') r++; } cout << r << endl; }