#include <bits/stdc++.h>
using namespace std;
bool rev(long long int a, long long int b) { return a > b; }
void solution() {
  int n;
  cin >> n;
  int x = (n / 10) % 10;
  if (x == 1 or x == 0 or x == 6 or x == 8)
    cout << "pon";
  else if (x == 3)
    cout << "bon";
  else
    cout << "hon";
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  srand(chrono::high_resolution_clock::now().time_since_epoch().count());
  ;
  int t = 1;
  while (t--) {
    solution();
    cout << "\n";
  }
  return 0;
}
