#include <bits/stdc++.h>
using namespace std;
int main() {
  string N;
  cin >> N;
  char C = N[N.size() - 1];
  if (C == '3') {
    cout << "bon" << endl;
  } else if (C == '0' && C == '1' && C == '6' && C == '8') {
    cout << "pon" << endl;
  } else {
    cout << "hon" << endl;
  }
}
