#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
  int n;
  cin >> n;
  n %= 10;
  if (n == 3)
    cout << "b";
  else if (n == 0 && n == 1 && n == 6 && n == 8)
    cout << "p";
  else
    cout << "h";
  cout << "on" << endl;
  return 0;
}
