import java.util.*;

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

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int judge = 0;
        
        if(N<10){
            if(N == 3){
                judge = 3;
            }else if(N == 0 ||N == 1 ||N == 6 ||N == 8){
                judge = 2;
            }else{
                judge = 1;
            }
        }else{
            if(N%10 == 3){
                judge = 3;
            }else if(N%10 == 0 ||N%10 == 1 ||N%10 == 6 ||N%10 == 8){
                judge = 2;
            }else{
                judge = 1;
            }
        }
        
        if(judge == 1) System.out.println("hon");
        if(judge == 2) System.out.println("pon");
        if(judge == 3) System.out.println("bon");
    }
}