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