#include <bits/stdc++.h>
using namespace std;
const long long MAX = 10000000;
const long long inf = 5e18 - 1;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  string n;
  cin >> n;
  long long k = n[0] - '0';
  if (k == 2 || k == 4 || k == 5 || k == 7 || k == 9)
    cout << "hon" << endl;
  else if (k == 0 || k == 1 || k == 6 || k == 8)
    cout << "pon" << endl;
  else
    cout << "bon" << endl;
  return 0;
}
