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