import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String N = sc.nextLine();
		if (N.matches(".*[24579]$")){
			System.out.println("hon");
		}else if(N.matches(".*[0168]$")){
			System.out.println("pon");
		} else {
			System.out.println("bon");
		}
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String N = sc.nextLine();
		if (N.matches(".*[24579]$")){
			System.out.println("hon");
		}else if(N.matches(".*[0168]$")){
			System.out.println("pon");
		} else {
			System.out.println("bon");
		}
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String N = sc.nextLine();
		if (N.matches(".*[24579]$")){
			System.out.println("hon");
		}else if(N.matches(".*[0168]$")){
			System.out.println("pon");
		} else {
			System.out.println("bon");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		String N = sc.nextLine();
		if (N.matches(".*[24579]$")){
			System.out.println("hon");
		}else if(N.matches(".*[0168]$")){
			System.out.println("pon");
		} else {
			System.out.println("bon");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String N = sc.nextLine(); N sc.nextLine() sc.nextLine sc if (N.matches(".*[24579]$")){
			System.out.println("hon");
		}else if(N.matches(".*[0168]$")){
			System.out.println("pon");
		} else {
			System.out.println("bon");
		} N.matches(".*[24579]$") N.matches N ".*[24579]$" {
			System.out.println("hon");
		} System.out.println("hon") System.out.println System.out System System.out "hon" if(N.matches(".*[0168]$")){
			System.out.println("pon");
		} else {
			System.out.println("bon");
		} N.matches(".*[0168]$") N.matches N ".*[0168]$" {
			System.out.println("pon");
		} System.out.println("pon") System.out.println System.out System System.out "pon" {
			System.out.println("bon");
		} 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);
		String N = sc.nextLine();
		if (N.matches(".*[24579]$")){
			System.out.println("hon");
		}else if(N.matches(".*[0168]$")){
			System.out.println("pon");
		} else {
			System.out.println("bon");
		}
	}
} public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String N = sc.nextLine();
		if (N.matches(".*[24579]$")){
			System.out.println("hon");
		}else if(N.matches(".*[0168]$")){
			System.out.println("pon");
		} else {
			System.out.println("bon");
		}
	}
} Main
import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String N = sc.nextLine();
		if (N.matches(".*[24579]$")){
			System.out.println("hon");
		}else if(N.matches(".*[0168]$")){
			System.out.println("pon");
		} else {
			System.out.println("bon");
		}
	}
}