#include <bits/stdc++.h>
int main() {
  int n;
  scanf("%d", n);
  if (n % 10 == 9 || 7 || 5 || 4 || 2) printf("hon");
  if (n % 10 == 0 || 1 || 6 || 8) printf("pon");
  if (n % 10 == 3) printf("bon");
}
