#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  while (1) {
    cin >> a;
    int ans = a % 10;
    if (ans == 3) {
      cout << "bon" << endl;
    } else if (ans == 0 || ans == 1 || ans == 6 || ans == 8) {
      cout << "pon" << endl;
    } else {
      cout << "hon" << endl;
    }
  }
  return 0;
}
