package main

import "fmt"

func main() {
	var a, n int
	fmt.Scan(&a)
	n = a % 10

	if n == 3{
		fmt.Println("hon")
	} else if n == 0 || n == 1 || n ==6 || n == 8{
		fmt.Println("pon")
	}else{
		fmt.Println("hon")
	}
}