#!/usr/bin/env python2

import sys

input = iter(sys.stdin.readlines()).next


def main():
   N = int(input())
   if N % 10 in [2, 4, 5, 7, 9]:
      res = 'hon'
   elif N % 10 in [0, 1, 6, 8]:
      res = 'pon'
   else:
      res = 'bon'
   print(res)

   return 0

if __name__ == '__main__':
   sys.setrecursionlimit(10000)
   main()
