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