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