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