#include <bits/stdc++.h>
using namespace std;
int main(void) {
  string s;
  cin >> s;
  if (s.find_last_of("2") == 0) {
    cout << "hon";
  }
  if (s.find_last_of("4") == 0) {
    cout << "hon";
  }
  if (s.find_last_of("5") == 0) {
    cout << "hon";
  }
  if (s.find_last_of("7") == 0) {
    cout << "hon";
  }
  if (s.find_last_of("9") == 0) {
    cout << "hon";
  }
  if (s.find_last_of("0") == 0) {
    cout << "pon";
  }
  if (s.find_last_of("1") == 0) {
    cout << "pon";
  }
  if (s.find_last_of("6") == 0) {
    cout << "pon";
  }
  if (s.find_last_of("8") == 0) {
    cout << "pon";
  }
  if (s.find_last_of("3") == 0) {
    cout << "bon";
  }
  return 0;
}
