import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {

        Scanner scan = new Scanner(System.in);
		int a = Integer.parseInt(scan.nextLine());
		
		switch(a % 10){
		    case 3 :
		        System.out.println("bon");
		        break;
		    
		    case 0 :
		        System.out.println("pon");
		        break;
		    
		    case 1 :
		        System.out.println("pon");
		        break;
		    
		    case 6 :
		        System.out.println("pon");
		        break;
		        
            case 8 :
                System.out.println("pon");
		        break;
		        
		    default : 
		        System.out.println("hon");
		}
		
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) throws Exception {

        Scanner scan = new Scanner(System.in);
		int a = Integer.parseInt(scan.nextLine());
		
		switch(a % 10){
		    case 3 :
		        System.out.println("bon");
		        break;
		    
		    case 0 :
		        System.out.println("pon");
		        break;
		    
		    case 1 :
		        System.out.println("pon");
		        break;
		    
		    case 6 :
		        System.out.println("pon");
		        break;
		        
            case 8 :
                System.out.println("pon");
		        break;
		        
		    default : 
		        System.out.println("hon");
		}
		
    }
} Main public static void main(String[] args) throws Exception {

        Scanner scan = new Scanner(System.in);
		int a = Integer.parseInt(scan.nextLine());
		
		switch(a % 10){
		    case 3 :
		        System.out.println("bon");
		        break;
		    
		    case 0 :
		        System.out.println("pon");
		        break;
		    
		    case 1 :
		        System.out.println("pon");
		        break;
		    
		    case 6 :
		        System.out.println("pon");
		        break;
		        
            case 8 :
                System.out.println("pon");
		        break;
		        
		    default : 
		        System.out.println("hon");
		}
		
    } main {

        Scanner scan = new Scanner(System.in);
		int a = Integer.parseInt(scan.nextLine());
		
		switch(a % 10){
		    case 3 :
		        System.out.println("bon");
		        break;
		    
		    case 0 :
		        System.out.println("pon");
		        break;
		    
		    case 1 :
		        System.out.println("pon");
		        break;
		    
		    case 6 :
		        System.out.println("pon");
		        break;
		        
            case 8 :
                System.out.println("pon");
		        break;
		        
		    default : 
		        System.out.println("hon");
		}
		
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = Integer.parseInt(scan.nextLine()); a Integer.parseInt(scan.nextLine()) Integer.parseInt Integer scan.nextLine() scan.nextLine scan switch(a % 10){
		    case 3 :
		        System.out.println("bon");
		        break;
		    
		    case 0 :
		        System.out.println("pon");
		        break;
		    
		    case 1 :
		        System.out.println("pon");
		        break;
		    
		    case 6 :
		        System.out.println("pon");
		        break;
		        
            case 8 :
                System.out.println("pon");
		        break;
		        
		    default : 
		        System.out.println("hon");
		} a % 10 a 10 case 3 : 3 case 3 : System.out.println("bon") System.out.println System.out System System.out "bon" break; case 0 : 0 case 0 : System.out.println("pon") System.out.println System.out System System.out "pon" break; case 1 : 1 case 1 : System.out.println("pon") System.out.println System.out System System.out "pon" break; case 6 : 6 case 6 : System.out.println("pon") System.out.println System.out System System.out "pon" break; case 8 : 8 case 8 : System.out.println("pon") System.out.println System.out System System.out "pon" break; default : default : System.out.println("hon") System.out.println System.out System System.out "hon" String[] args args public class Main {
    public static void main(String[] args) throws Exception {

        Scanner scan = new Scanner(System.in);
		int a = Integer.parseInt(scan.nextLine());
		
		switch(a % 10){
		    case 3 :
		        System.out.println("bon");
		        break;
		    
		    case 0 :
		        System.out.println("pon");
		        break;
		    
		    case 1 :
		        System.out.println("pon");
		        break;
		    
		    case 6 :
		        System.out.println("pon");
		        break;
		        
            case 8 :
                System.out.println("pon");
		        break;
		        
		    default : 
		        System.out.println("hon");
		}
		
    }
} public class Main {
    public static void main(String[] args) throws Exception {

        Scanner scan = new Scanner(System.in);
		int a = Integer.parseInt(scan.nextLine());
		
		switch(a % 10){
		    case 3 :
		        System.out.println("bon");
		        break;
		    
		    case 0 :
		        System.out.println("pon");
		        break;
		    
		    case 1 :
		        System.out.println("pon");
		        break;
		    
		    case 6 :
		        System.out.println("pon");
		        break;
		        
            case 8 :
                System.out.println("pon");
		        break;
		        
		    default : 
		        System.out.println("hon");
		}
		
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {

        Scanner scan = new Scanner(System.in);
		int a = Integer.parseInt(scan.nextLine());
		
		switch(a % 10){
		    case 3 :
		        System.out.println("bon");
		        break;
		    
		    case 0 :
		        System.out.println("pon");
		        break;
		    
		    case 1 :
		        System.out.println("pon");
		        break;
		    
		    case 6 :
		        System.out.println("pon");
		        break;
		        
            case 8 :
                System.out.println("pon");
		        break;
		        
		    default : 
		        System.out.println("hon");
		}
		
    }
}