n = int(input())

if n % 9 == 0 or n % 7 == 0 or n % 5 == 0:
    print("bon")
elif n % 8 == 0 or n % 6 == 0:
    print("pon")
elif n % 2 == 0:
    print("bon")
elif n % 3 == 0:
    print("bon")
else:
    print("pon")
