import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner (System.in);
		int a = 0;
		for(int i = 1;i>0;i++){
			int n = scan.nextInt();
			if(n>=0&n<=999) {
				a = n;
				break;
			}}
			if(a>=100) {
				for(int j =0;j<11;j++) {
					a=a-100;
					if(a<100) {
						break;
					}
					
				}
			}
			else {}
				
				if(a>=10) {
					for(int j =0;j<11;j++) {
						a=a-10;
						if(a<10) {
							break;
						}
					}
				}
					else {
					}
			
				if(a==2||a==4||a==5||a==7||a==9) {
					System.out.println("hon");
				}
				else if(a==0||a==1||a==6||a==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 scan = new Scanner (System.in);
		int a = 0;
		for(int i = 1;i>0;i++){
			int n = scan.nextInt();
			if(n>=0&n<=999) {
				a = n;
				break;
			}}
			if(a>=100) {
				for(int j =0;j<11;j++) {
					a=a-100;
					if(a<100) {
						break;
					}
					
				}
			}
			else {}
				
				if(a>=10) {
					for(int j =0;j<11;j++) {
						a=a-10;
						if(a<10) {
							break;
						}
					}
				}
					else {
					}
			
				if(a==2||a==4||a==5||a==7||a==9) {
					System.out.println("hon");
				}
				else if(a==0||a==1||a==6||a==8) {
					System.out.println("pon");
				}
				else {
					System.out.println("bon");
				}
		}
		
		
		
	} Main public static void main(String[] args) {
		Scanner scan = new Scanner (System.in);
		int a = 0;
		for(int i = 1;i>0;i++){
			int n = scan.nextInt();
			if(n>=0&n<=999) {
				a = n;
				break;
			}}
			if(a>=100) {
				for(int j =0;j<11;j++) {
					a=a-100;
					if(a<100) {
						break;
					}
					
				}
			}
			else {}
				
				if(a>=10) {
					for(int j =0;j<11;j++) {
						a=a-10;
						if(a<10) {
							break;
						}
					}
				}
					else {
					}
			
				if(a==2||a==4||a==5||a==7||a==9) {
					System.out.println("hon");
				}
				else if(a==0||a==1||a==6||a==8) {
					System.out.println("pon");
				}
				else {
					System.out.println("bon");
				}
		} main {
		Scanner scan = new Scanner (System.in);
		int a = 0;
		for(int i = 1;i>0;i++){
			int n = scan.nextInt();
			if(n>=0&n<=999) {
				a = n;
				break;
			}}
			if(a>=100) {
				for(int j =0;j<11;j++) {
					a=a-100;
					if(a<100) {
						break;
					}
					
				}
			}
			else {}
				
				if(a>=10) {
					for(int j =0;j<11;j++) {
						a=a-10;
						if(a<10) {
							break;
						}
					}
				}
					else {
					}
			
				if(a==2||a==4||a==5||a==7||a==9) {
					System.out.println("hon");
				}
				else if(a==0||a==1||a==6||a==8) {
					System.out.println("pon");
				}
				else {
					System.out.println("bon");
				}
		} Scanner scan = new Scanner (System.in); scan new Scanner (System.in) int a = 0; a 0 for(int i = 1;i>0;i++){
			int n = scan.nextInt();
			if(n>=0&n<=999) {
				a = n;
				break;
			}} int i = 1; int i = 1; i 1 i>0 i 0 i++ i++ i {
			int n = scan.nextInt();
			if(n>=0&n<=999) {
				a = n;
				break;
			}} {
			int n = scan.nextInt();
			if(n>=0&n<=999) {
				a = n;
				break;
			}} int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan if(n>=0&n<=999) {
				a = n;
				break;
			} n>=0&n<=999 n>=0 n 0 n<=999 n 999 {
				a = n;
				break;
			} a = n a n break; if(a>=100) {
				for(int j =0;j<11;j++) {
					a=a-100;
					if(a<100) {
						break;
					}
					
				}
			}
			else {} a>=100 a 100 {
				for(int j =0;j<11;j++) {
					a=a-100;
					if(a<100) {
						break;
					}
					
				}
			} for(int j =0;j<11;j++) {
					a=a-100;
					if(a<100) {
						break;
					}
					
				} int j =0; int j =0; j 0 j<11 j 11 j++ j++ j {
					a=a-100;
					if(a<100) {
						break;
					}
					
				} {
					a=a-100;
					if(a<100) {
						break;
					}
					
				} a=a-100 a a-100 a 100 if(a<100) {
						break;
					} a<100 a 100 {
						break;
					} break; {} if(a>=10) {
					for(int j =0;j<11;j++) {
						a=a-10;
						if(a<10) {
							break;
						}
					}
				}
					else {
					} a>=10 a 10 {
					for(int j =0;j<11;j++) {
						a=a-10;
						if(a<10) {
							break;
						}
					}
				} for(int j =0;j<11;j++) {
						a=a-10;
						if(a<10) {
							break;
						}
					} int j =0; int j =0; j 0 j<11 j 11 j++ j++ j {
						a=a-10;
						if(a<10) {
							break;
						}
					} {
						a=a-10;
						if(a<10) {
							break;
						}
					} a=a-10 a a-10 a 10 if(a<10) {
							break;
						} a<10 a 10 {
							break;
						} break; {
					} if(a==2||a==4||a==5||a==7||a==9) {
					System.out.println("hon");
				}
				else if(a==0||a==1||a==6||a==8) {
					System.out.println("pon");
				}
				else {
					System.out.println("bon");
				} a==2||a==4||a==5||a==7||a==9 a==7 a==5 a==2||a==4||a==5||a==7||a==9 a==2 a 2 a==4 a 4 a==5 a 5 a==7 a 7 a==9 a 9 {
					System.out.println("hon");
				} System.out.println("hon") System.out.println System.out System System.out "hon" if(a==0||a==1||a==6||a==8) {
					System.out.println("pon");
				}
				else {
					System.out.println("bon");
				} a==0||a==1||a==6||a==8 a==6 a==0||a==1||a==6||a==8 a==0 a 0 a==1 a 1 a==6 a 6 a==8 a 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 scan = new Scanner (System.in);
		int a = 0;
		for(int i = 1;i>0;i++){
			int n = scan.nextInt();
			if(n>=0&n<=999) {
				a = n;
				break;
			}}
			if(a>=100) {
				for(int j =0;j<11;j++) {
					a=a-100;
					if(a<100) {
						break;
					}
					
				}
			}
			else {}
				
				if(a>=10) {
					for(int j =0;j<11;j++) {
						a=a-10;
						if(a<10) {
							break;
						}
					}
				}
					else {
					}
			
				if(a==2||a==4||a==5||a==7||a==9) {
					System.out.println("hon");
				}
				else if(a==0||a==1||a==6||a==8) {
					System.out.println("pon");
				}
				else {
					System.out.println("bon");
				}
		}
		
		
		
	} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner (System.in);
		int a = 0;
		for(int i = 1;i>0;i++){
			int n = scan.nextInt();
			if(n>=0&n<=999) {
				a = n;
				break;
			}}
			if(a>=100) {
				for(int j =0;j<11;j++) {
					a=a-100;
					if(a<100) {
						break;
					}
					
				}
			}
			else {}
				
				if(a>=10) {
					for(int j =0;j<11;j++) {
						a=a-10;
						if(a<10) {
							break;
						}
					}
				}
					else {
					}
			
				if(a==2||a==4||a==5||a==7||a==9) {
					System.out.println("hon");
				}
				else if(a==0||a==1||a==6||a==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 scan = new Scanner (System.in);
		int a = 0;
		for(int i = 1;i>0;i++){
			int n = scan.nextInt();
			if(n>=0&n<=999) {
				a = n;
				break;
			}}
			if(a>=100) {
				for(int j =0;j<11;j++) {
					a=a-100;
					if(a<100) {
						break;
					}
					
				}
			}
			else {}
				
				if(a>=10) {
					for(int j =0;j<11;j++) {
						a=a-10;
						if(a<10) {
							break;
						}
					}
				}
					else {
					}
			
				if(a==2||a==4||a==5||a==7||a==9) {
					System.out.println("hon");
				}
				else if(a==0||a==1||a==6||a==8) {
					System.out.println("pon");
				}
				else {
					System.out.println("bon");
				}
		}
		
		
		
	}