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