#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  int d = n % 10;
  if (d == 3)
    cout << "bon"
         << "\n";
  else if (d == 2 || d == 4 || d == 7 || d == 5 || d == 9)
    cout << "hon"
         << "\n";
  else
    cout << "pon\n";
  return 0;
}
