#include <bits/stdc++.h>
using namespace std;
void solve() {
  int a;
  scanf("%d", &a);
  a = a % 10;
  if (a == 2 || a == 4 || a == 5 || a == 7 || a == 9)
    puts("hon");
  else if (a == 0 || a == 1 || a == 6 || a == 8)
    puts("pon");
  else
    puts("bon");
}
int main() {
  long long T = 1;
  while (T--) solve();
  return 0;
}
