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