#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  int a;
  a = 1;
  cin >> N;
  while ((N - a) % 10 != 0) {
    a++;
  }
  if (a = 2 || 4 || 5 || 7 || 9) {
    cout << "hon" << endl;
  } else {
    if (a = 3) {
      cout << "bon" << endl;
    } else {
      cout << "pon" << endl;
    }
  }
}
