#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b;
  b = 0;
  cin >> a;
  b = a % 10;
  if (b == 2 && b == 4 && b == 5 && b == 7 && b == 9) {
    cout << "hon";
  }
  if (b == 0 && b == 1 && b == 6 && b == 8) {
    cout << "pon";
  }
  if (b == 3) {
    cout << "bon";
  }
  return 0;
}
