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