import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        
        int a = scanner.nextInt();
        int valLen = String.valueOf(a).length(); 
        String s = String.valueOf(a);
        String i = s.substring(valLen-1);
        int c = Integer.parseInt(i);
        if(c == 3){
            System.out.println("bon");
        }else if(c == 0 || c == 1 || c == 6 || c == 8){
            System.out.println("pon");
        }else{
            System.out.println("hon");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        
        int a = scanner.nextInt();
        int valLen = String.valueOf(a).length(); 
        String s = String.valueOf(a);
        String i = s.substring(valLen-1);
        int c = Integer.parseInt(i);
        if(c == 3){
            System.out.println("bon");
        }else if(c == 0 || c == 1 || c == 6 || c == 8){
            System.out.println("pon");
        }else{
            System.out.println("hon");
        }
    }
} Main public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        
        int a = scanner.nextInt();
        int valLen = String.valueOf(a).length(); 
        String s = String.valueOf(a);
        String i = s.substring(valLen-1);
        int c = Integer.parseInt(i);
        if(c == 3){
            System.out.println("bon");
        }else if(c == 0 || c == 1 || c == 6 || c == 8){
            System.out.println("pon");
        }else{
            System.out.println("hon");
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        
        int a = scanner.nextInt();
        int valLen = String.valueOf(a).length(); 
        String s = String.valueOf(a);
        String i = s.substring(valLen-1);
        int c = Integer.parseInt(i);
        if(c == 3){
            System.out.println("bon");
        }else if(c == 0 || c == 1 || c == 6 || c == 8){
            System.out.println("pon");
        }else{
            System.out.println("hon");
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int valLen = String.valueOf(a).length(); valLen String.valueOf(a).length() String.valueOf(a).length String.valueOf(a) String.valueOf String a String s = String.valueOf(a); s String.valueOf(a) String.valueOf String a String i = s.substring(valLen-1); i s.substring(valLen-1) s.substring s valLen-1 valLen 1 int c = Integer.parseInt(i); c Integer.parseInt(i) Integer.parseInt Integer i if(c == 3){
            System.out.println("bon");
        }else if(c == 0 || c == 1 || c == 6 || c == 8){
            System.out.println("pon");
        }else{
            System.out.println("hon");
        } c == 3 c 3 {
            System.out.println("bon");
        } System.out.println("bon") System.out.println System.out System System.out "bon" if(c == 0 || c == 1 || c == 6 || c == 8){
            System.out.println("pon");
        }else{
            System.out.println("hon");
        } c == 0 || c == 1 || c == 6 || c == 8 c == 6 c == 0 || c == 1 || c == 6 || c == 8 c == 0 c 0 c == 1 c 1 c == 6 c 6 c == 8 c 8 {
            System.out.println("pon");
        } System.out.println("pon") System.out.println System.out System System.out "pon" {
            System.out.println("hon");
        } 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){
        Scanner scanner = new Scanner(System.in);
        
        int a = scanner.nextInt();
        int valLen = String.valueOf(a).length(); 
        String s = String.valueOf(a);
        String i = s.substring(valLen-1);
        int c = Integer.parseInt(i);
        if(c == 3){
            System.out.println("bon");
        }else if(c == 0 || c == 1 || c == 6 || c == 8){
            System.out.println("pon");
        }else{
            System.out.println("hon");
        }
    }
} public class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        
        int a = scanner.nextInt();
        int valLen = String.valueOf(a).length(); 
        String s = String.valueOf(a);
        String i = s.substring(valLen-1);
        int c = Integer.parseInt(i);
        if(c == 3){
            System.out.println("bon");
        }else if(c == 0 || c == 1 || c == 6 || c == 8){
            System.out.println("pon");
        }else{
            System.out.println("hon");
        }
    }
} Main
import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        
        int a = scanner.nextInt();
        int valLen = String.valueOf(a).length(); 
        String s = String.valueOf(a);
        String i = s.substring(valLen-1);
        int c = Integer.parseInt(i);
        if(c == 3){
            System.out.println("bon");
        }else if(c == 0 || c == 1 || c == 6 || c == 8){
            System.out.println("pon");
        }else{
            System.out.println("hon");
        }
    }
}