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