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