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