#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, one;
  cin >> n;
  if (n < 10) {
    if (n == 2 || n == 4 || n == 5 || n == 7 || n == 9)
      cout << "hon" << endl;
    else if (one == 0 || one == 1 || one == 6 || one == 8)
      cout << "pon" << endl;
    else
      cout << "bon" << endl;
  } else if (n < 100) {
    one = n % 10;
    if (n == 2 || n == 4 || n == 5 || n == 7 || n == 9)
      cout << "hon" << endl;
    else if (one == 0 || one == 1 || one == 6 || one == 8)
      cout << "pon" << endl;
    else if (one == 0 || one == 1 || one == 6 || one == 8)
      cout << "pon" << endl;
    else
      cout << "bon" << endl;
  } else {
    if (n == 2 || n == 4 || n == 5 || n == 7 || n == 9)
      cout << "hon" << endl;
    else if (one == 0 || one == 1 || one == 6 || one == 8)
      cout << "pon" << endl;
    else
      cout << "bon" << endl;
  }
}
