#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n;
  cin >> n;
  ;
  long long r = n % 10;
  if (r == 2 || r == 5 || r == 7 || r == 9)
    cout << "hon\n";
  else if (r == 0 || r == 1 || r == 6 || r == 8)
    cout << "pon\n";
  else if (r == 3)
    cout << "bon\n";
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(0);
  int t = 1;
  while (t--) solve();
  return 0;
}
