#include <bits/stdc++.h>
using namespace std;
const int mod = 1e9 + 7;
const int N = 1e5 + 10;
const int M = 1e6 + 10;
int n;
int main() {
  cin >> n;
  n %= 10;
  if (n == 2 || n == 4 || n == 5 || n == 7 || n == 9)
    puts("hon");
  else if (n == 3)
    puts("bon");
  else
    puts("pon");
  return 0;
}
