#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a = n % 100, b = n % 10;
  if (b == 3) {
    cout << "bon" << endl;
  } else if (b == 2, 4, 5, 7, 9) {
    cout << "hon" << endl;
  } else {
    cout << "pon" << endl;
  }
}
