package main

import(
	"fmt"
)

func switch_num(a int){
	switch a{
	case 2,4,5,7,9:
		fmt.Println("hon")
	case 0,1,6,8:
		fmt.Println("pon")
	case 3:
		fmt.Println("bon")
	default:
		fmt.Println("error")
	}
}

func main(){
	var a int
	fmt.Scan(&a)

	if a < 10{
		switch_num(a)
	}else if a >=10 && a < 100{
		b := a % 10
		switch_num(b)
	}else if a >=100 && a < 1000{
		c := a % 100
		switch_num(c)
	}
}