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