#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
using pq = priority_queue<int>;
using q = queue<int>;
int main() {
  int n;
  cin >> n;
  int ans = 0;
  if (n > 100)
    ans = n % 100;
  else if (n > 10)
    ans = n % 10;
  else
    ans = n;
  if (ans == 3) {
    cout << "bon" << endl;
  } else if (ans == 0 || ans == 1 || ans == 6 || ans == 8) {
    cout << "pon" << endl;
  } else {
    cout << "hon" << endl;
  }
  return 0;
}
