#include <stdio.h>
int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  int inputNum;
  scanf("%d", &inputNum);
  int rest = inputNum % 10;
  if(rest == 3){
    printf("bon")
  }else if(rest == 0 || rest == 1 || rest == 6 || rest == 8){
    printf("pon");
  }else if(rest == 2 || rest == 4 || rest == 5 || rest == 7 || rest == 9){
    printf("hon");
  }
}
