#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  map<int, string> p;
  p[2] = "hon";
  p[4] = "hon";
  p[5] = "hon";
  p[7] = "hon";
  p[0] = "pon";
  p[1] = "pon";
  p[6] = "pon";
  p[8] = "pon";
  p[3] = "bon";
  int rem = n % 10;
  cout << p[rem];
}
