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