import java.util.*;
class Main
{
  public static void main(String args[])
  {
    int N;
    Scanner in=new Scanner(System.in);
    N=in.nextInt();
    int i;
    i=N%10;
    if(i==3)
      System.out.println("bon");
    else if(i==2 ||i==4 ||i==5 ||i==7 ||i==9)
      System.out.println("hon");
    else 
      System.out.println("pon");
  }
}
     import java.util.*; util.* java class Main
{
  public static void main(String args[])
  {
    int N;
    Scanner in=new Scanner(System.in);
    N=in.nextInt();
    int i;
    i=N%10;
    if(i==3)
      System.out.println("bon");
    else if(i==2 ||i==4 ||i==5 ||i==7 ||i==9)
      System.out.println("hon");
    else 
      System.out.println("pon");
  }
} Main public static void main(String args[])
  {
    int N;
    Scanner in=new Scanner(System.in);
    N=in.nextInt();
    int i;
    i=N%10;
    if(i==3)
      System.out.println("bon");
    else if(i==2 ||i==4 ||i==5 ||i==7 ||i==9)
      System.out.println("hon");
    else 
      System.out.println("pon");
  } main {
    int N;
    Scanner in=new Scanner(System.in);
    N=in.nextInt();
    int i;
    i=N%10;
    if(i==3)
      System.out.println("bon");
    else if(i==2 ||i==4 ||i==5 ||i==7 ||i==9)
      System.out.println("hon");
    else 
      System.out.println("pon");
  } int N; N Scanner in=new Scanner(System.in); in new Scanner(System.in) N=in.nextInt() N in.nextInt() in.nextInt in int i; i i=N%10 i N%10 N 10 if(i==3)
      System.out.println("bon");
    else if(i==2 ||i==4 ||i==5 ||i==7 ||i==9)
      System.out.println("hon");
    else 
      System.out.println("pon"); i==3 i 3 System.out.println("bon") System.out.println System.out System System.out "bon" if(i==2 ||i==4 ||i==5 ||i==7 ||i==9)
      System.out.println("hon");
    else 
      System.out.println("pon"); i==2 ||i==4 ||i==5 ||i==7 ||i==9 i==7 i==5 i==2 ||i==4 ||i==5 ||i==7 ||i==9 i==2 i 2 i==4 i 4 i==5 i 5 i==7 i 7 i==9 i 9 System.out.println("hon") System.out.println System.out System System.out "hon" System.out.println("pon") System.out.println System.out System System.out "pon" String args[] args
import java.util.*;
class Main
{
  public static void main(String args[])
  {
    int N;
    Scanner in=new Scanner(System.in);
    N=in.nextInt();
    int i;
    i=N%10;
    if(i==3)
      System.out.println("bon");
    else if(i==2 ||i==4 ||i==5 ||i==7 ||i==9)
      System.out.println("hon");
    else 
      System.out.println("pon");
  }
}
    
