import UIKit

var b = (Float(readLine()!)!).remainder(dividingBy: 10.0);

if(b == 2 || b == 4 || b == 5 || b == 7 || b == 9)
{
    print("hon")
}
else if(b == 0 || b == 1 || b == 6 || b == 8)
{
    print("pon")
}
else
{
    print("bon")
}
