#include <bits/stdc++.h>
using namespace std;
const int maxn = 100010;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n = 0;
  cin >> n;
  int x = n % 10;
  if (x == 2 || x == 4 || x == 4 || x == 7 || x == 9)
    cout << "hon";
  else if (x == 0 || x == 1 || x == 6 || x == 8)
    cout << "pon";
  else
    cout << "bon";
  cout << endl;
}
