package main

import "fmt"


func main() {
	var n int
  	fmt.Scanf("%d", &n)
  	
  	sup := n%10
  
  if sup == 3 {
    fmt.Println("bon")
  }else if (sup ==2 || sup == 5 || sup == 7 || sup == 9 ) {
    fmt.Println("hon")
  }else {
    fmt.Println("pon")
  }
}