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