package main

import "fmt"

func main() {
	var n int

	fmt.Scanf("%d", &n)

	hon_list := []int{2,4,5,7,9}

	pon_list := []int{0,1,6,8}

	if contains(hon_list, n)  {
		fmt.Printf("hon")
	} else if contains(pon_list, n) {
		fmt.Printf("pon")
	} else {
		fmt.Printf("bon")
	}
}

func contains(arr []int, i int) bool {
	for _, a := range arr {
		if a == i {
			return true
		}
	}
	return false
}