imort java.util.*;
public class Atcoder
{
  public static void main(String args[])
  {
    Scanner sc=new Scanner(System.in);
    int N=sc.nextInt();
      int number=N%10;
       if(number>=1 && number<=9)
       {
       if(number==2 ||number ==4|| number==5|| number==7 ||number==9)
       {
         System.out.println("hon");
       }
       else  if(number==0 ||number == 1|| number==6|| number==8)
         {
         System.out.println("pon");
       }
         else 
           {
         System.out.println("bon");
       }
       }   
  }
}