#include <bits/stdc++.h>
using namespace std;
int main(void) {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  string s;
  cin >> s;
  int d = s[0] - '0';
  string ans;
  if (d == 2 or d == 4 or d == 5 or d == 7 or d == 9)
    ans = "hon";
  else if (d == 3)
    ans = "bon";
  else
    ans = "pon";
  cout << ans;
  return 0;
}
