using System;
 
class Ans{
  public static void Main(string[] args) {
    string n = Console.ReadLine();
    char n_last = n[-1];
    string str;
    switch(n_last) {
      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);
	}
}