package main

import "fmt"

func main() {
	var a int
	fmt.Scan(&a)
	if a==3 {
		fmt.Println("bon")
	} else (a == 0 || a == 1 || a == 6 || a == 8) {
		fmt.Println("pon")
	} else {
		fmt.Println("hon")
	}
}