#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  cin >> a;
  int n = a % 10;
  if (n == 2 or n == 4 or n == 5 or n == 9 or n == 7)
    cout << "hom" << endl;
  else if (n == 0 or n == 1 or n == 6 or n == 8)
    cout << "pon" << endl;
  else
    cout << "bon" << endl;
}
