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