#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  cin >> a;
  string ans;
  if (a == 2 || a == 4 || a == 5 || a == 7 || a == 9)
    ans = "hon";
  else if (a == 3)
    ans = "bon";
  else
    ans = "pon";
  cout << ans << endl;
  return 0;
}
