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