#include <bits/stdc++.h>
using namespace std;
int main() {
  string a;
  cin >> a;
  if (a[a.size() - 1] == '2' || a[a.size() - 1] == '4' ||
      a[a.size() - 1] == '5' || a[a.size() - 1] == '7' ||
      a[a.size() - 1] == '9') {
    cout << "hon" << '\n';
  } else if (a[a.size() - 1] == '3') {
    cout << "bon" << '\n';
  } else {
    cout << "pon" << '\n';
  }
  return 0;
}
