import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		try(Scanner input = new Scanner(System.in)){
			String testCase = input.nextLine();
			solution(testCase);
		}
	}
	public static void solution(String str){
		String onesDigit = str.substring(str.length()-1);
		int x = Integer.parseInt(onesDigit);
		if (x==2||x==4||x==5||x==7||x==9){
			System.out.println("hon");
		}
		if (x==0||x==1||x==6||x==8){
			System.out.println("pon");
		}
		if (x==3){
			System.out.println("bon");
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		try(Scanner input = new Scanner(System.in)){
			String testCase = input.nextLine();
			solution(testCase);
		}
	}
	public static void solution(String str){
		String onesDigit = str.substring(str.length()-1);
		int x = Integer.parseInt(onesDigit);
		if (x==2||x==4||x==5||x==7||x==9){
			System.out.println("hon");
		}
		if (x==0||x==1||x==6||x==8){
			System.out.println("pon");
		}
		if (x==3){
			System.out.println("bon");
		}
	}
} Main public static void main(String[] args){
		try(Scanner input = new Scanner(System.in)){
			String testCase = input.nextLine();
			solution(testCase);
		}
	} main {
		try(Scanner input = new Scanner(System.in)){
			String testCase = input.nextLine();
			solution(testCase);
		}
	} try(Scanner input = new Scanner(System.in)){
			String testCase = input.nextLine();
			solution(testCase);
		} {
			String testCase = input.nextLine();
			solution(testCase);
		} Scanner input = new Scanner(System.in) Scanner input = new Scanner(System.in) new Scanner(System.in) String testCase = input.nextLine(); testCase input.nextLine() input.nextLine input solution(testCase) solution testCase String[] args args public static void solution(String str){
		String onesDigit = str.substring(str.length()-1);
		int x = Integer.parseInt(onesDigit);
		if (x==2||x==4||x==5||x==7||x==9){
			System.out.println("hon");
		}
		if (x==0||x==1||x==6||x==8){
			System.out.println("pon");
		}
		if (x==3){
			System.out.println("bon");
		}
	} solution {
		String onesDigit = str.substring(str.length()-1);
		int x = Integer.parseInt(onesDigit);
		if (x==2||x==4||x==5||x==7||x==9){
			System.out.println("hon");
		}
		if (x==0||x==1||x==6||x==8){
			System.out.println("pon");
		}
		if (x==3){
			System.out.println("bon");
		}
	} String onesDigit = str.substring(str.length()-1); onesDigit str.substring(str.length()-1) str.substring str str.length()-1 str.length() str.length str 1 int x = Integer.parseInt(onesDigit); x Integer.parseInt(onesDigit) Integer.parseInt Integer onesDigit if (x==2||x==4||x==5||x==7||x==9){
			System.out.println("hon");
		} x==2||x==4||x==5||x==7||x==9 x==7 x==5 x==2||x==4||x==5||x==7||x==9 x==2 x 2 x==4 x 4 x==5 x 5 x==7 x 7 x==9 x 9 {
			System.out.println("hon");
		} System.out.println("hon") System.out.println System.out System System.out "hon" if (x==0||x==1||x==6||x==8){
			System.out.println("pon");
		} x==0||x==1||x==6||x==8 x==6 x==0||x==1||x==6||x==8 x==0 x 0 x==1 x 1 x==6 x 6 x==8 x 8 {
			System.out.println("pon");
		} System.out.println("pon") System.out.println System.out System System.out "pon" if (x==3){
			System.out.println("bon");
		} x==3 x 3 {
			System.out.println("bon");
		} System.out.println("bon") System.out.println System.out System System.out "bon" String str str public class Main {
	public static void main(String[] args){
		try(Scanner input = new Scanner(System.in)){
			String testCase = input.nextLine();
			solution(testCase);
		}
	}
	public static void solution(String str){
		String onesDigit = str.substring(str.length()-1);
		int x = Integer.parseInt(onesDigit);
		if (x==2||x==4||x==5||x==7||x==9){
			System.out.println("hon");
		}
		if (x==0||x==1||x==6||x==8){
			System.out.println("pon");
		}
		if (x==3){
			System.out.println("bon");
		}
	}
} public class Main {
	public static void main(String[] args){
		try(Scanner input = new Scanner(System.in)){
			String testCase = input.nextLine();
			solution(testCase);
		}
	}
	public static void solution(String str){
		String onesDigit = str.substring(str.length()-1);
		int x = Integer.parseInt(onesDigit);
		if (x==2||x==4||x==5||x==7||x==9){
			System.out.println("hon");
		}
		if (x==0||x==1||x==6||x==8){
			System.out.println("pon");
		}
		if (x==3){
			System.out.println("bon");
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		try(Scanner input = new Scanner(System.in)){
			String testCase = input.nextLine();
			solution(testCase);
		}
	}
	public static void solution(String str){
		String onesDigit = str.substring(str.length()-1);
		int x = Integer.parseInt(onesDigit);
		if (x==2||x==4||x==5||x==7||x==9){
			System.out.println("hon");
		}
		if (x==0||x==1||x==6||x==8){
			System.out.println("pon");
		}
		if (x==3){
			System.out.println("bon");
		}
	}
}
