#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string s = "on";
  set<int> a = {2, 4, 5, 7, 9}, b = {0, 1, 6, 8};
  n = n % 10;
  if (a.count(n))
    s = "h" + s;
  else if (b.count(n))
    s = "p" + s;
  s = "b" + s;
  cout << s << endl;
}
