using System;

class Ans{
  public static void Main(string[] args) {
    string n = Console.ReadLine();
    string str;
    switch(n[-1]) {
      case "2":
      case "4":
      case "5":
      case "7":
      case "9":
        str = "hon";
        break;
      case "0":
      case "1":
      case "6":
      case "8":
        str = "pon";
        break;
      case "3":
        str = "bon";
        break;
      default:
        break;
    	}
		Console.WriteLine(str);
	}
}
