package main

import(
	"fmt"
)

func switch_num(num int){
	switch num{
	case 2, 4, 5, 7, 8, 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(&num)

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