#include <bits/stdc++.h>
using namespace std;
int power(long long int x, long long int y) {
  long long int res = 1;
  while (y > 0) {
    if (y & 1) res = (res * x) % 1000000007;
    y = y >> 1;
    x = (x * x) % 1000000007;
  }
  return res;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  n = n % 10;
  if (n == 0 || n == 1 || n == 6 || (n == 8))
    cout << "hon\n";
  else if (n == 3)
    cout << "bon\n";
  else
    cout << "pon\n";
}
