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