package main

import (
	"fmt"
)

func main() {
	a := 0
	fmt.Scanf("%d", a)
	a %= 10
	switch a {
	case 2, 4, 5, 7, 9:
		fmt.Println("hon")
	case 0, 1, 6, 8:
		fmt.Println("pon")
	default:
		fmt.Println("bon")
	}
}
