#include <bits/stdc++.h>
using namespace std;
void init() {
  cin.tie(0);
  cin.sync_with_stdio(0);
}
const int N = 1e5 + 9, M = 1e6 + 9, OO = 0x3f3f3f3f;
const long long llOO = 0x3f3f3f3f3f3f3f3f;
int main() {
  init();
  int n;
  cin >> n;
  n = n % 10;
  if (n == 2 || n == 4 || n == 5 || n == 7)
    cout << "hon";
  else if (n == 3)
    cout << "bon";
  else
    cout << "pon";
}
