/* ex3_2
   offNaria */
#include <stdio.h>
int main(void){
  int N; //整数Nを定義
  scanf("%d", &N); //入力を変数に代入
  
  N = N % 10; //Nの1の位のみを取得
  if(N == 3){
    printf("bon\n"); //3はbon
  } else if(N == 0 || N == 1 || N == 6 || N == 8){
    printf("pon\n"); //0,1,6,8はpon
  } else {
    printf("hon\n"); //それ以外はhon
  }
  return 0;
}
