#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  string M;
  cin >> N;
  M = to_string(N);
  M = M[M.length() - 1];
  if (M == "3") {
    cout << "bon";
  }
  if (M == "0" || M == "1" || M == "6" || M == "8") {
    cout << "pon";
  }
  if (M == "2" || M == "4" || M == "5" || M == "7") {
    cout << "hon";
  }
  return 0;
}
