#include <bits/stdc++.h>
using namespace std;
int solve() {
  string s;
  cin >> s;
  char ch = s[0];
  string hon = "24579";
  string pon = "0168";
  string bon = "3";
  if (hon.find(ch) != string::npos) {
    cout << "hon\n";
  } else if (pon.find(ch) != string::npos) {
    cout << "pon\n";
  } else
    cout << "bon\n";
  return 0;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  solve();
  return 0;
}
