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