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