#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int keta = N % 10;
  string tani = "";
  if (keta == (0 || 1 || 6 || 8)) {
    tani = "pon";
  } else if (keta == 3) {
    tani = "bon";
  } else {
    tani = "hon";
  }
  cout << tani << endl;
}
