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