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