#include <bits/stdc++.h>
using namespace std;
int main() {
  string n;
  cin >> n;
  char g = n.back();
  if (g == 3) {
    cout << "bon";
  } else if (g == 0 || 6 || 1 || 8) {
    cout << "pon";
  } else {
    cout << "hon";
  }
  return 0;
}
