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