#include <bits/stdc++.h>
int main(int argc, char* argv[]) {
  int N, L, M;
  N <= 999;
  scanf("%3d", &N);
  L = N % 100;
  M = N % 10;
  if (M = 2 || 4 || 5 || 7 || 9) {
    printf("hon");
    return 0;
  } else if (M = 0 || 1 || 6 || 8) {
    printf("pon");
    return 0;
  } else {
    printf("bon");
    return 0;
  }
}
