#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int mod = n % 10;
  cout << (mod == 3                                         ? "bon"
           : (mod == 0 || mod == 1 || mod == 6 || mod == 0) ? "pon"
                                                            : "hon")
       << endl;
  return EXIT_SUCCESS;
}
