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