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