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