#include <bits/stdc++.h>
int dizi[1000];
int main() {
  int a;
  scanf("%d", &a);
  int ans = a % 10;
  if (ans == 3)
    printf("bon");
  else if (ans == 0 || ans == 1 || ans == 6 || ans == 8)
    printf("pon");
  else
    printf("hom");
}
