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

