import java.util.Scanner;

class Main {
  
  public static void main(String args[]) {
    
    Scanner in = new Scanner(System.in);
    int n = in.nextInt();
    int x = n%10;
    
    if(x == 3)
      System.out.print("bon");
  	else if(x == 0 || x == 1 || x == 6 || x == 8)
       System.out.print("pon");
    else 
       System.out.print("hon");

  }
  
}
  
  
  
  
 import java.util.Scanner; Scanner java.util class Main {
  
  public static void main(String args[]) {
    
    Scanner in = new Scanner(System.in);
    int n = in.nextInt();
    int x = n%10;
    
    if(x == 3)
      System.out.print("bon");
  	else if(x == 0 || x == 1 || x == 6 || x == 8)
       System.out.print("pon");
    else 
       System.out.print("hon");

  }
  
} Main public static void main(String args[]) {
    
    Scanner in = new Scanner(System.in);
    int n = in.nextInt();
    int x = n%10;
    
    if(x == 3)
      System.out.print("bon");
  	else if(x == 0 || x == 1 || x == 6 || x == 8)
       System.out.print("pon");
    else 
       System.out.print("hon");

  } main {
    
    Scanner in = new Scanner(System.in);
    int n = in.nextInt();
    int x = n%10;
    
    if(x == 3)
      System.out.print("bon");
  	else if(x == 0 || x == 1 || x == 6 || x == 8)
       System.out.print("pon");
    else 
       System.out.print("hon");

  } Scanner in = new Scanner(System.in); in new Scanner(System.in) int n = in.nextInt(); n in.nextInt() in.nextInt in int x = n%10; x n%10 n 10 if(x == 3)
      System.out.print("bon");
  	else if(x == 0 || x == 1 || x == 6 || x == 8)
       System.out.print("pon");
    else 
       System.out.print("hon"); x == 3 x 3 System.out.print("bon") System.out.print System.out System System.out "bon" if(x == 0 || x == 1 || x == 6 || x == 8)
       System.out.print("pon");
    else 
       System.out.print("hon"); x == 0 || x == 1 || x == 6 || x == 8 x == 6 x == 0 || x == 1 || x == 6 || x == 8 x == 0 x 0 x == 1 x 1 x == 6 x 6 x == 8 x 8 System.out.print("pon") System.out.print System.out System System.out "pon" System.out.print("hon") System.out.print System.out System System.out "hon" String args[] args
import java.util.Scanner;

class Main {
  
  public static void main(String args[]) {
    
    Scanner in = new Scanner(System.in);
    int n = in.nextInt();
    int x = n%10;
    
    if(x == 3)
      System.out.print("bon");
  	else if(x == 0 || x == 1 || x == 6 || x == 8)
       System.out.print("pon");
    else 
       System.out.print("hon");

  }
  
}
  
  
  
  

