import java. util.Scanner;
public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();

		String s = String.valueOf(n);

		char[] c = s.toCharArray();

		if(n<10) {
			if(c[0]=='3') {
				System.out.println("bon");
			}else if(c[0]=='0'||c[0]=='1'||c[0]=='6'||c[0]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			}
		}else if(10<n&&n<100) {
			if(c[1]=='3') {
				System.out.println("bon");
			}else if(c[1]=='0'||c[1]=='1'||c[1]=='6'||c[1]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			}
		}else {
			if(c[2]=='3') {
				System.out.println("bon");
			}else if(c[2]=='0'||c[2]=='1'||c[2]=='6'||c[2]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			}
		}

	}

} import java. util.Scanner; Scanner java. util public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();

		String s = String.valueOf(n);

		char[] c = s.toCharArray();

		if(n<10) {
			if(c[0]=='3') {
				System.out.println("bon");
			}else if(c[0]=='0'||c[0]=='1'||c[0]=='6'||c[0]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			}
		}else if(10<n&&n<100) {
			if(c[1]=='3') {
				System.out.println("bon");
			}else if(c[1]=='0'||c[1]=='1'||c[1]=='6'||c[1]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			}
		}else {
			if(c[2]=='3') {
				System.out.println("bon");
			}else if(c[2]=='0'||c[2]=='1'||c[2]=='6'||c[2]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			}
		}

	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();

		String s = String.valueOf(n);

		char[] c = s.toCharArray();

		if(n<10) {
			if(c[0]=='3') {
				System.out.println("bon");
			}else if(c[0]=='0'||c[0]=='1'||c[0]=='6'||c[0]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			}
		}else if(10<n&&n<100) {
			if(c[1]=='3') {
				System.out.println("bon");
			}else if(c[1]=='0'||c[1]=='1'||c[1]=='6'||c[1]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			}
		}else {
			if(c[2]=='3') {
				System.out.println("bon");
			}else if(c[2]=='0'||c[2]=='1'||c[2]=='6'||c[2]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			}
		}

	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();

		String s = String.valueOf(n);

		char[] c = s.toCharArray();

		if(n<10) {
			if(c[0]=='3') {
				System.out.println("bon");
			}else if(c[0]=='0'||c[0]=='1'||c[0]=='6'||c[0]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			}
		}else if(10<n&&n<100) {
			if(c[1]=='3') {
				System.out.println("bon");
			}else if(c[1]=='0'||c[1]=='1'||c[1]=='6'||c[1]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			}
		}else {
			if(c[2]=='3') {
				System.out.println("bon");
			}else if(c[2]=='0'||c[2]=='1'||c[2]=='6'||c[2]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			}
		}

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan String s = String.valueOf(n); s String.valueOf(n) String.valueOf String n char[] c = s.toCharArray(); c s.toCharArray() s.toCharArray s if(n<10) {
			if(c[0]=='3') {
				System.out.println("bon");
			}else if(c[0]=='0'||c[0]=='1'||c[0]=='6'||c[0]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			}
		}else if(10<n&&n<100) {
			if(c[1]=='3') {
				System.out.println("bon");
			}else if(c[1]=='0'||c[1]=='1'||c[1]=='6'||c[1]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			}
		}else {
			if(c[2]=='3') {
				System.out.println("bon");
			}else if(c[2]=='0'||c[2]=='1'||c[2]=='6'||c[2]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			}
		} n<10 n 10 {
			if(c[0]=='3') {
				System.out.println("bon");
			}else if(c[0]=='0'||c[0]=='1'||c[0]=='6'||c[0]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			}
		} if(c[0]=='3') {
				System.out.println("bon");
			}else if(c[0]=='0'||c[0]=='1'||c[0]=='6'||c[0]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			} c[0]=='3' c[0] c 0 '3' {
				System.out.println("bon");
			} System.out.println("bon") System.out.println System.out System System.out "bon" if(c[0]=='0'||c[0]=='1'||c[0]=='6'||c[0]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			} c[0]=='0'||c[0]=='1'||c[0]=='6'||c[0]=='8' c[0]=='6' c[0]=='0'||c[0]=='1'||c[0]=='6'||c[0]=='8' c[0]=='0' c[0] c 0 '0' c[0]=='1' c[0] c 0 '1' c[0]=='6' c[0] c 0 '6' c[0]=='8' c[0] c 0 '8' {
				System.out.println("pon");
			} System.out.println("pon") System.out.println System.out System System.out "pon" {
				System.out.println("hon");
			} System.out.println("hon") System.out.println System.out System System.out "hon" if(10<n&&n<100) {
			if(c[1]=='3') {
				System.out.println("bon");
			}else if(c[1]=='0'||c[1]=='1'||c[1]=='6'||c[1]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			}
		}else {
			if(c[2]=='3') {
				System.out.println("bon");
			}else if(c[2]=='0'||c[2]=='1'||c[2]=='6'||c[2]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			}
		} 10<n&&n<100 10<n 10 n n<100 n 100 {
			if(c[1]=='3') {
				System.out.println("bon");
			}else if(c[1]=='0'||c[1]=='1'||c[1]=='6'||c[1]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			}
		} if(c[1]=='3') {
				System.out.println("bon");
			}else if(c[1]=='0'||c[1]=='1'||c[1]=='6'||c[1]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			} c[1]=='3' c[1] c 1 '3' {
				System.out.println("bon");
			} System.out.println("bon") System.out.println System.out System System.out "bon" if(c[1]=='0'||c[1]=='1'||c[1]=='6'||c[1]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			} c[1]=='0'||c[1]=='1'||c[1]=='6'||c[1]=='8' c[1]=='6' c[1]=='0'||c[1]=='1'||c[1]=='6'||c[1]=='8' c[1]=='0' c[1] c 1 '0' c[1]=='1' c[1] c 1 '1' c[1]=='6' c[1] c 1 '6' c[1]=='8' c[1] c 1 '8' {
				System.out.println("pon");
			} System.out.println("pon") System.out.println System.out System System.out "pon" {
				System.out.println("hon");
			} System.out.println("hon") System.out.println System.out System System.out "hon" {
			if(c[2]=='3') {
				System.out.println("bon");
			}else if(c[2]=='0'||c[2]=='1'||c[2]=='6'||c[2]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			}
		} if(c[2]=='3') {
				System.out.println("bon");
			}else if(c[2]=='0'||c[2]=='1'||c[2]=='6'||c[2]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			} c[2]=='3' c[2] c 2 '3' {
				System.out.println("bon");
			} System.out.println("bon") System.out.println System.out System System.out "bon" if(c[2]=='0'||c[2]=='1'||c[2]=='6'||c[2]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			} c[2]=='0'||c[2]=='1'||c[2]=='6'||c[2]=='8' c[2]=='6' c[2]=='0'||c[2]=='1'||c[2]=='6'||c[2]=='8' c[2]=='0' c[2] c 2 '0' c[2]=='1' c[2] c 2 '1' c[2]=='6' c[2] c 2 '6' c[2]=='8' c[2] c 2 '8' {
				System.out.println("pon");
			} System.out.println("pon") System.out.println System.out System System.out "pon" {
				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) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();

		String s = String.valueOf(n);

		char[] c = s.toCharArray();

		if(n<10) {
			if(c[0]=='3') {
				System.out.println("bon");
			}else if(c[0]=='0'||c[0]=='1'||c[0]=='6'||c[0]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			}
		}else if(10<n&&n<100) {
			if(c[1]=='3') {
				System.out.println("bon");
			}else if(c[1]=='0'||c[1]=='1'||c[1]=='6'||c[1]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			}
		}else {
			if(c[2]=='3') {
				System.out.println("bon");
			}else if(c[2]=='0'||c[2]=='1'||c[2]=='6'||c[2]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			}
		}

	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();

		String s = String.valueOf(n);

		char[] c = s.toCharArray();

		if(n<10) {
			if(c[0]=='3') {
				System.out.println("bon");
			}else if(c[0]=='0'||c[0]=='1'||c[0]=='6'||c[0]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			}
		}else if(10<n&&n<100) {
			if(c[1]=='3') {
				System.out.println("bon");
			}else if(c[1]=='0'||c[1]=='1'||c[1]=='6'||c[1]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			}
		}else {
			if(c[2]=='3') {
				System.out.println("bon");
			}else if(c[2]=='0'||c[2]=='1'||c[2]=='6'||c[2]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			}
		}

	}

} Main
import java. util.Scanner;
public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();

		String s = String.valueOf(n);

		char[] c = s.toCharArray();

		if(n<10) {
			if(c[0]=='3') {
				System.out.println("bon");
			}else if(c[0]=='0'||c[0]=='1'||c[0]=='6'||c[0]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			}
		}else if(10<n&&n<100) {
			if(c[1]=='3') {
				System.out.println("bon");
			}else if(c[1]=='0'||c[1]=='1'||c[1]=='6'||c[1]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			}
		}else {
			if(c[2]=='3') {
				System.out.println("bon");
			}else if(c[2]=='0'||c[2]=='1'||c[2]=='6'||c[2]=='8') {
				System.out.println("pon");
			}else {
				System.out.println("hon");
			}
		}

	}

}
