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