import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        
        int num = N % 10;
        String a = null;
        
        if(num == 3){
            a = "bon";
        } else if(num == 0||num==1||num==6||num==8){
            a = "pon";
        } else {
            a ="hon";
        }
        
        System.out.println(a);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        
        int num = N % 10;
        String a = null;
        
        if(num == 3){
            a = "bon";
        } else if(num == 0||num==1||num==6||num==8){
            a = "pon";
        } else {
            a ="hon";
        }
        
        System.out.println(a);
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        
        int num = N % 10;
        String a = null;
        
        if(num == 3){
            a = "bon";
        } else if(num == 0||num==1||num==6||num==8){
            a = "pon";
        } else {
            a ="hon";
        }
        
        System.out.println(a);
    } main {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        
        int num = N % 10;
        String a = null;
        
        if(num == 3){
            a = "bon";
        } else if(num == 0||num==1||num==6||num==8){
            a = "pon";
        } else {
            a ="hon";
        }
        
        System.out.println(a);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int num = N % 10; num N % 10 N 10 String a = null; a null if(num == 3){
            a = "bon";
        } else if(num == 0||num==1||num==6||num==8){
            a = "pon";
        } else {
            a ="hon";
        } num == 3 num 3 {
            a = "bon";
        } a = "bon" a "bon" if(num == 0||num==1||num==6||num==8){
            a = "pon";
        } else {
            a ="hon";
        } num == 0||num==1||num==6||num==8 num==6 num == 0||num==1||num==6||num==8 num == 0 num 0 num==1 num 1 num==6 num 6 num==8 num 8 {
            a = "pon";
        } a = "pon" a "pon" {
            a ="hon";
        } a ="hon" a "hon" System.out.println(a) System.out.println System.out System System.out a String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        
        int num = N % 10;
        String a = null;
        
        if(num == 3){
            a = "bon";
        } else if(num == 0||num==1||num==6||num==8){
            a = "pon";
        } else {
            a ="hon";
        }
        
        System.out.println(a);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        
        int num = N % 10;
        String a = null;
        
        if(num == 3){
            a = "bon";
        } else if(num == 0||num==1||num==6||num==8){
            a = "pon";
        } else {
            a ="hon";
        }
        
        System.out.println(a);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        
        int num = N % 10;
        String a = null;
        
        if(num == 3){
            a = "bon";
        } else if(num == 0||num==1||num==6||num==8){
            a = "pon";
        } else {
            a ="hon";
        }
        
        System.out.println(a);
    }
}
