#include <bits/stdc++.h>
using namespace std;
const int inf = (int)1e9;
char flip_bits(char c) { return (c == '0') ? '1' : '0'; }
int smallestDivisor(int n) {
  if (n % 2 == 0) return 2;
  for (int i = 3; i * i <= n; i += 2) {
    if (n % i == 0) return i;
  }
  return n;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long n;
  cin >> n;
  long long ans = n % 10;
  if (ans == (2 || 4 || 5 || 7 || 9)) {
    cout << "hon";
  } else if (ans == (0 || 1 || 6 || 8)) {
    cout << "pon";
  } else {
    cout << "bon";
  }
  return 0;
}
