def main():
    N = int(input())
    keta = N // 100
    ans = ""
    if keta == 3:
        ans = "bon"
    elif keta == 0 or keta == 4 or keta == 6 or keta == 8:
        ans = "pon"
    else:
        ans = "hon"
    print(ans) 

if __name__ == '__main__':
  main()