package main

import (
	"fmt"
)

func main() {
	var s string
	fmt.Scan(&s)
	fmt.Println(s[len(s)-1:])
	
	if s[len(s)-1:] == "2" || s[len(s)-1:] == "4" || s[len(s)-1:] == "5" || s[len(s)-1:] == "7" || s[len(s)-1:] == "9" {
		fmt.Println("hon")
	}else if s[len(s)-1:] == "0" || s[len(s)-1:] == "1" || s[len(s)-1:] == "6" || s[len(s)-1:] =="8"{
		fmt.Println("pon")
	}else{
		fmt.Println("bon")
	}
}
