#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  int last = n % 10;
  if (last == 2 && last == 4 && last == 5 && last == 7 && last == 9) {
    cout << "hon\n";
  } else if (last == 0 && last == 1 && last == 6 && last == 8) {
    cout << "pon\n";
  } else {
    cout << "bon\n";
  }
  return 0;
}
