import java.util.Scanner;


public class Main {
	public static void main(String args[]) {
		Scanner n = new Scanner(System.in);
		
		int N = n.nextInt();
		
		if(N >= 100) {
			N = N % 100;
		}
		
		if(N >= 10) {
			N = N % 10;
		}
		
		if(N == 2 || N == 4 || N == 5 || N == 7 || N == 9) {
			System.out.println("hon");
			
		}else if(N == 0 || N == 1 || N == 6 || N == 8) {
			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 n = new Scanner(System.in);
		
		int N = n.nextInt();
		
		if(N >= 100) {
			N = N % 100;
		}
		
		if(N >= 10) {
			N = N % 10;
		}
		
		if(N == 2 || N == 4 || N == 5 || N == 7 || N == 9) {
			System.out.println("hon");
			
		}else if(N == 0 || N == 1 || N == 6 || N == 8) {
			System.out.println("pon");
			
		}else {
			System.out.println("bon");
		}
	}
} Main public static void main(String args[]) {
		Scanner n = new Scanner(System.in);
		
		int N = n.nextInt();
		
		if(N >= 100) {
			N = N % 100;
		}
		
		if(N >= 10) {
			N = N % 10;
		}
		
		if(N == 2 || N == 4 || N == 5 || N == 7 || N == 9) {
			System.out.println("hon");
			
		}else if(N == 0 || N == 1 || N == 6 || N == 8) {
			System.out.println("pon");
			
		}else {
			System.out.println("bon");
		}
	} main {
		Scanner n = new Scanner(System.in);
		
		int N = n.nextInt();
		
		if(N >= 100) {
			N = N % 100;
		}
		
		if(N >= 10) {
			N = N % 10;
		}
		
		if(N == 2 || N == 4 || N == 5 || N == 7 || N == 9) {
			System.out.println("hon");
			
		}else if(N == 0 || N == 1 || N == 6 || N == 8) {
			System.out.println("pon");
			
		}else {
			System.out.println("bon");
		}
	} Scanner n = new Scanner(System.in); n new Scanner(System.in) int N = n.nextInt(); N n.nextInt() n.nextInt n if(N >= 100) {
			N = N % 100;
		} N >= 100 N 100 {
			N = N % 100;
		} N = N % 100 N N % 100 N 100 if(N >= 10) {
			N = N % 10;
		} N >= 10 N 10 {
			N = N % 10;
		} N = N % 10 N N % 10 N 10 if(N == 2 || N == 4 || N == 5 || N == 7 || N == 9) {
			System.out.println("hon");
			
		}else if(N == 0 || N == 1 || N == 6 || N == 8) {
			System.out.println("pon");
			
		}else {
			System.out.println("bon");
		} N == 2 || N == 4 || N == 5 || N == 7 || N == 9 N == 7 N == 5 N == 2 || N == 4 || N == 5 || N == 7 || N == 9 N == 2 N 2 N == 4 N 4 N == 5 N 5 N == 7 N 7 N == 9 N 9 {
			System.out.println("hon");
			
		} System.out.println("hon") System.out.println System.out System System.out "hon" if(N == 0 || N == 1 || N == 6 || N == 8) {
			System.out.println("pon");
			
		}else {
			System.out.println("bon");
		} 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 {
			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 n = new Scanner(System.in);
		
		int N = n.nextInt();
		
		if(N >= 100) {
			N = N % 100;
		}
		
		if(N >= 10) {
			N = N % 10;
		}
		
		if(N == 2 || N == 4 || N == 5 || N == 7 || N == 9) {
			System.out.println("hon");
			
		}else if(N == 0 || N == 1 || N == 6 || N == 8) {
			System.out.println("pon");
			
		}else {
			System.out.println("bon");
		}
	}
} public class Main {
	public static void main(String args[]) {
		Scanner n = new Scanner(System.in);
		
		int N = n.nextInt();
		
		if(N >= 100) {
			N = N % 100;
		}
		
		if(N >= 10) {
			N = N % 10;
		}
		
		if(N == 2 || N == 4 || N == 5 || N == 7 || N == 9) {
			System.out.println("hon");
			
		}else if(N == 0 || N == 1 || N == 6 || N == 8) {
			System.out.println("pon");
			
		}else {
			System.out.println("bon");
		}
	}
} Main
import java.util.Scanner;


public class Main {
	public static void main(String args[]) {
		Scanner n = new Scanner(System.in);
		
		int N = n.nextInt();
		
		if(N >= 100) {
			N = N % 100;
		}
		
		if(N >= 10) {
			N = N % 10;
		}
		
		if(N == 2 || N == 4 || N == 5 || N == 7 || N == 9) {
			System.out.println("hon");
			
		}else if(N == 0 || N == 1 || N == 6 || N == 8) {
			System.out.println("pon");
			
		}else {
			System.out.println("bon");
		}
	}
}
