import java.util.Scanner;

public class Main {
	public static void main(String[] arg) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int NLast = N;
		int N3;
		int NumberofDigits = 0;

		for(;;) {
			if(N==0) {
				break;
			}else {
				NumberofDigits++;
				N = N/10;
			}
		}

		for(int i=NumberofDigits;i>1;i--) {
			N3  = (int) (NLast/(Math.pow(10, i-1)));
			NLast = (int) (NLast - N3*(Math.pow(10, i-1)));
		}

		switch(NLast) {
		case 0: System.out.println("pon"); break;
		case 1: System.out.println("pon"); break;
		case 2: System.out.println("hon"); break;
		case 3: System.out.println("bon"); break;
		case 4: System.out.println("hon"); break;
		case 5: System.out.println("hon"); break;
		case 6: System.out.println("pon"); break;
		case 7: System.out.println("hon"); break;
		case 8: System.out.println("pon"); break;
		case 9: System.out.println("hon"); break;
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] arg) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int NLast = N;
		int N3;
		int NumberofDigits = 0;

		for(;;) {
			if(N==0) {
				break;
			}else {
				NumberofDigits++;
				N = N/10;
			}
		}

		for(int i=NumberofDigits;i>1;i--) {
			N3  = (int) (NLast/(Math.pow(10, i-1)));
			NLast = (int) (NLast - N3*(Math.pow(10, i-1)));
		}

		switch(NLast) {
		case 0: System.out.println("pon"); break;
		case 1: System.out.println("pon"); break;
		case 2: System.out.println("hon"); break;
		case 3: System.out.println("bon"); break;
		case 4: System.out.println("hon"); break;
		case 5: System.out.println("hon"); break;
		case 6: System.out.println("pon"); break;
		case 7: System.out.println("hon"); break;
		case 8: System.out.println("pon"); break;
		case 9: System.out.println("hon"); break;
		}
	}
} Main public static void main(String[] arg) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int NLast = N;
		int N3;
		int NumberofDigits = 0;

		for(;;) {
			if(N==0) {
				break;
			}else {
				NumberofDigits++;
				N = N/10;
			}
		}

		for(int i=NumberofDigits;i>1;i--) {
			N3  = (int) (NLast/(Math.pow(10, i-1)));
			NLast = (int) (NLast - N3*(Math.pow(10, i-1)));
		}

		switch(NLast) {
		case 0: System.out.println("pon"); break;
		case 1: System.out.println("pon"); break;
		case 2: System.out.println("hon"); break;
		case 3: System.out.println("bon"); break;
		case 4: System.out.println("hon"); break;
		case 5: System.out.println("hon"); break;
		case 6: System.out.println("pon"); break;
		case 7: System.out.println("hon"); break;
		case 8: System.out.println("pon"); break;
		case 9: System.out.println("hon"); break;
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int NLast = N;
		int N3;
		int NumberofDigits = 0;

		for(;;) {
			if(N==0) {
				break;
			}else {
				NumberofDigits++;
				N = N/10;
			}
		}

		for(int i=NumberofDigits;i>1;i--) {
			N3  = (int) (NLast/(Math.pow(10, i-1)));
			NLast = (int) (NLast - N3*(Math.pow(10, i-1)));
		}

		switch(NLast) {
		case 0: System.out.println("pon"); break;
		case 1: System.out.println("pon"); break;
		case 2: System.out.println("hon"); break;
		case 3: System.out.println("bon"); break;
		case 4: System.out.println("hon"); break;
		case 5: System.out.println("hon"); break;
		case 6: System.out.println("pon"); break;
		case 7: System.out.println("hon"); break;
		case 8: System.out.println("pon"); break;
		case 9: System.out.println("hon"); break;
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int NLast = N; NLast N int N3; N3 int NumberofDigits = 0; NumberofDigits 0 for(;;) {
			if(N==0) {
				break;
			}else {
				NumberofDigits++;
				N = N/10;
			}
		} ; {
			if(N==0) {
				break;
			}else {
				NumberofDigits++;
				N = N/10;
			}
		} {
			if(N==0) {
				break;
			}else {
				NumberofDigits++;
				N = N/10;
			}
		} if(N==0) {
				break;
			}else {
				NumberofDigits++;
				N = N/10;
			} N==0 N 0 {
				break;
			} break; {
				NumberofDigits++;
				N = N/10;
			} NumberofDigits++ NumberofDigits N = N/10 N N/10 N 10 for(int i=NumberofDigits;i>1;i--) {
			N3  = (int) (NLast/(Math.pow(10, i-1)));
			NLast = (int) (NLast - N3*(Math.pow(10, i-1)));
		} int i=NumberofDigits; int i=NumberofDigits; i NumberofDigits i>1 i 1 i-- i-- i {
			N3  = (int) (NLast/(Math.pow(10, i-1)));
			NLast = (int) (NLast - N3*(Math.pow(10, i-1)));
		} {
			N3  = (int) (NLast/(Math.pow(10, i-1)));
			NLast = (int) (NLast - N3*(Math.pow(10, i-1)));
		} N3  = (int) (NLast/(Math.pow(10, i-1))) N3 (int) (NLast/(Math.pow(10, i-1))) NLast (Math.pow(10, i-1)) Math.pow Math 10 i-1 i 1 NLast = (int) (NLast - N3*(Math.pow(10, i-1))) NLast (int) (NLast - N3*(Math.pow(10, i-1))) NLast N3*(Math.pow(10, i-1)) N3 (Math.pow(10, i-1)) Math.pow Math 10 i-1 i 1 switch(NLast) {
		case 0: System.out.println("pon"); break;
		case 1: System.out.println("pon"); break;
		case 2: System.out.println("hon"); break;
		case 3: System.out.println("bon"); break;
		case 4: System.out.println("hon"); break;
		case 5: System.out.println("hon"); break;
		case 6: System.out.println("pon"); break;
		case 7: System.out.println("hon"); break;
		case 8: System.out.println("pon"); break;
		case 9: System.out.println("hon"); break;
		} NLast case 0: 0 case 0: System.out.println("pon") System.out.println System.out System System.out "pon" break; case 1: 1 case 1: System.out.println("pon") System.out.println System.out System System.out "pon" break; case 2: 2 case 2: System.out.println("hon") System.out.println System.out System System.out "hon" break; case 3: 3 case 3: System.out.println("bon") System.out.println System.out System System.out "bon" break; case 4: 4 case 4: System.out.println("hon") System.out.println System.out System System.out "hon" break; case 5: 5 case 5: System.out.println("hon") System.out.println System.out System System.out "hon" break; case 6: 6 case 6: System.out.println("pon") System.out.println System.out System System.out "pon" break; case 7: 7 case 7: System.out.println("hon") System.out.println System.out System System.out "hon" break; case 8: 8 case 8: System.out.println("pon") System.out.println System.out System System.out "pon" break; case 9: 9 case 9: System.out.println("hon") System.out.println System.out System System.out "hon" break; String[] arg arg public class Main {
	public static void main(String[] arg) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int NLast = N;
		int N3;
		int NumberofDigits = 0;

		for(;;) {
			if(N==0) {
				break;
			}else {
				NumberofDigits++;
				N = N/10;
			}
		}

		for(int i=NumberofDigits;i>1;i--) {
			N3  = (int) (NLast/(Math.pow(10, i-1)));
			NLast = (int) (NLast - N3*(Math.pow(10, i-1)));
		}

		switch(NLast) {
		case 0: System.out.println("pon"); break;
		case 1: System.out.println("pon"); break;
		case 2: System.out.println("hon"); break;
		case 3: System.out.println("bon"); break;
		case 4: System.out.println("hon"); break;
		case 5: System.out.println("hon"); break;
		case 6: System.out.println("pon"); break;
		case 7: System.out.println("hon"); break;
		case 8: System.out.println("pon"); break;
		case 9: System.out.println("hon"); break;
		}
	}
} public class Main {
	public static void main(String[] arg) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int NLast = N;
		int N3;
		int NumberofDigits = 0;

		for(;;) {
			if(N==0) {
				break;
			}else {
				NumberofDigits++;
				N = N/10;
			}
		}

		for(int i=NumberofDigits;i>1;i--) {
			N3  = (int) (NLast/(Math.pow(10, i-1)));
			NLast = (int) (NLast - N3*(Math.pow(10, i-1)));
		}

		switch(NLast) {
		case 0: System.out.println("pon"); break;
		case 1: System.out.println("pon"); break;
		case 2: System.out.println("hon"); break;
		case 3: System.out.println("bon"); break;
		case 4: System.out.println("hon"); break;
		case 5: System.out.println("hon"); break;
		case 6: System.out.println("pon"); break;
		case 7: System.out.println("hon"); break;
		case 8: System.out.println("pon"); break;
		case 9: System.out.println("hon"); break;
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] arg) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int NLast = N;
		int N3;
		int NumberofDigits = 0;

		for(;;) {
			if(N==0) {
				break;
			}else {
				NumberofDigits++;
				N = N/10;
			}
		}

		for(int i=NumberofDigits;i>1;i--) {
			N3  = (int) (NLast/(Math.pow(10, i-1)));
			NLast = (int) (NLast - N3*(Math.pow(10, i-1)));
		}

		switch(NLast) {
		case 0: System.out.println("pon"); break;
		case 1: System.out.println("pon"); break;
		case 2: System.out.println("hon"); break;
		case 3: System.out.println("bon"); break;
		case 4: System.out.println("hon"); break;
		case 5: System.out.println("hon"); break;
		case 6: System.out.println("pon"); break;
		case 7: System.out.println("hon"); break;
		case 8: System.out.println("pon"); break;
		case 9: System.out.println("hon"); break;
		}
	}
}
