object Main extends App{
    val n = scala.io.StdIn.readInt
    println(n.toString.last match {
        case '2' => "hon"
        case '4' => "hon" 
        case '5' => "hon" 
        case '7' => "hon" 
        case '9' => "hon"
        
        case '0' => "pon"
        case '1' => "pon" 
        case '6' => "pon"
        case '8' => "pon"
        
        case _   => "bon"
    })
}
