#include <iostream>
#include <string>
#include <cstring>
using namespace std;
int main()
{
int n;
cin >> n;
string str0,str1;
str0 = "moo";
str1 = "moo";
int i = 0;
while (str1.length() < n)
{
i++;
string temp = "";
for (int j = 0; j < i + 2; j++)
temp += "o";
str1 = str0 + "m" + temp + str0;
str0 = str1;
}
cout << str1[n - 1] << endl;
return 0;
}