#include <bits/stdc++.h>
using namespace std;
int main() {
  string a;
  cin >> a;
  if (a[a.size() - 1] == 0 || a[a.size() - 1] == 1 || a[a.size() - 1] == 6 ||
      a[a.size() - 1] == 8) {
    cout << "pon";
  } else if (a[a.size() - 1] == 3) {
    cout << "bon";
  } else {
    cout << "hon";
  }
}
