#include <bits/stdc++.h>
using namespace std;
const int M = 1000005;
int main() {
  string ans = "hon";
  int n;
  cin >> n;
  n = n % 10;
  if (n == 3)
    ans = "bon";
  else if (n == 0 || n == 1 || n == 6 || 0 == 8)
    ans = "pon";
  cout << ans << endl;
  return 0;
}
