#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  {
    long long n;
    cin >> n;
    n %= 10;
    if (n == 3)
      cout << "hon\n";
    else if (n == 0 or n == 1 or n == 6 or n == 8)
      cout << "pon\n";
    else
      cout << "bon\n";
  }
  return 0;
}
