program ABC168_A
  read(*,*)N
  M=mod(N,10)
  if(M==3)  write(*,*)'bon'
  if(M==0 .or. M==1 .or. M==6 .or. M==8) write(*,*)'pon'
  if(M==2 .or. M==4 .or. M==5 .or. M==7 .or. M==9) write(*,*)'hon'
end program ABC168_A
