#include <bits/stdc++.h>
using namespace std;
using lint = long long;
signed main() {
  int n;
  cin >> n;
  n %= 10;
  if (n == 2, 4, 5, 7, 9) cout << "hon" << endl;
  if (n == 0, 1, 6, 8) cout << "pon" << endl;
  if (n == 3) cout << "bon" << endl;
}
