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