PROGRAM c168a

IMPLICIT NONE
INTEGER :: N

READ *, N

IF (MOD(N, 10) == 3) THEN
 PRINT *, 'bon'
ELSE IF (MOD(N, 10) == 0 .OR. MOD(N, 10) == 1 .OR. MOD(N, 10) == 6 .OR. MOD(N, 10) == 8) THEN
 PRINT *, 'pon'
ELSE
 PRINT *, 'hon'
END IF

END PROGRAM c168a