#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, M;
  cin >> N;
  M = N - N / 10 * 10;
  string ans;
  if (M == 2 || M == 4 || M == 5 || M == 7 || M == 9) {
    ans = "hon";
  } else if (M == 0 || M == 1 || M == 6 || M == 8) {
    ans = "pon";
  } else if (M == 3) {
    ans = "bon";
  }
  cout << ans << endl;
}
