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