using System;

class Pencils {
  
  public static void Main(string[] args)
  {
    var input = int.Parse(Console.ReadLine());
    
    var result = GetCounter(input);
    
    Console.WriteLine(result); 
  }
  
  private static string GetCounter(int n){
    int lastDigit = n % 10;
    string result = null;
    
    switch (lastDigit){
      case 0:
      case 1:
      case 6:
      case 8:
        result =  "pon";
        break;
      case 2:
      case 4:
      case 5:
      case 7:
      case 9:
        result "hon";
        break;
      case 3:
        result "bon";
        break;
    }
    
    return result;
  }
}