#include <bits/stdc++.h>
int main() {
  int n;
  do {
    scanf("%d", &n);
  } while (n < 0 || n > 1000);
  int n1 = (n + 1) % 10;
  int n2 = (n + 2) % 10;
  int n3 = (n + 3) % 10;
  int n4 = (n + 4) % 10;
  int n5 = (n + 5) % 10;
  int n6 = (n + 6) % 10;
  int n7 = (n + 7) % 10;
  int n8 = (n + 8) % 10;
  int n9 = (n + 9) % 10;
  int n0 = n;
  if (n8 == 0 || n6 == 0 || n5 == 0 || n3 == 0 || n1 == 0) {
    printf("%s\n", "hon");
  }
  if (n0 == 0 || n9 == 0 || n4 == 0 || n2 == 0) {
    printf("%s\n", "pon");
  }
  if (n7 == 0) {
    printf("%s\n", "bon");
  }
  return 0;
}
