#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, n1;
  cin >> n;
  n1 = n % 10;
  vector<string> ans(10);
  ans[0] = ans[1] = ans[6] = ans[8] = "pon";
  ans[3] = "bon";
  ans[2] = ans[4] = ans[5] = ans[7] = ans[9] = "hon";
  cout << ans[0] << endl;
  return 0;
}
