#include <bits/stdc++.h>
using namespace std;
int main() {
  int x;
  cin >> x;
  for (int i = 0; i < x, x < 10; i++) {
    x -= 10;
  }
  if ((x == 3)) {
    cout << "bon" << endl;
  } else if ((x == 0) || (x == 1) || (x == 6) || (x == 8)) {
    cout << "pon" << endl;
  } else {
    cout << "hon" << endl;
  }
}
