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