# -*- coding: utf-8 -*-
b = int(input())
c = b.split('')
a = c[-1]
if (a == '2' || a== '4' || a=='5' || a == '7' || a == '9'){
	print("hon")
}else if(a == '0' || a== '1' || a=='6' || a == '8'){
	print("pon")
}else {
  print("bon")
}
