import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
		String str = "hon";
        num = num%10;
		
		if (num == 3){
			str = "bon";
		}
		else if (num == 0 || num == 1 || num == 6 || num == 8){
			str = "pon";
		}
		 System.out.printf(str);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
		String str = "hon";
        num = num%10;
		
		if (num == 3){
			str = "bon";
		}
		else if (num == 0 || num == 1 || num == 6 || num == 8){
			str = "pon";
		}
		 System.out.printf(str);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
		String str = "hon";
        num = num%10;
		
		if (num == 3){
			str = "bon";
		}
		else if (num == 0 || num == 1 || num == 6 || num == 8){
			str = "pon";
		}
		 System.out.printf(str);
    } main {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
		String str = "hon";
        num = num%10;
		
		if (num == 3){
			str = "bon";
		}
		else if (num == 0 || num == 1 || num == 6 || num == 8){
			str = "pon";
		}
		 System.out.printf(str);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc String str = "hon"; str "hon" num = num%10 num num%10 num 10 if (num == 3){
			str = "bon";
		}
		else if (num == 0 || num == 1 || num == 6 || num == 8){
			str = "pon";
		} num == 3 num 3 {
			str = "bon";
		} str = "bon" str "bon" if (num == 0 || num == 1 || num == 6 || num == 8){
			str = "pon";
		} 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 {
			str = "pon";
		} str = "pon" str "pon" System.out.printf(str) System.out.printf System.out System System.out str String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
		String str = "hon";
        num = num%10;
		
		if (num == 3){
			str = "bon";
		}
		else if (num == 0 || num == 1 || num == 6 || num == 8){
			str = "pon";
		}
		 System.out.printf(str);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
		String str = "hon";
        num = num%10;
		
		if (num == 3){
			str = "bon";
		}
		else if (num == 0 || num == 1 || num == 6 || num == 8){
			str = "pon";
		}
		 System.out.printf(str);
    }
} Main
import java.util.Scanner;

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