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

		int num  = scan.nextInt();
		int amari = num%10;

		if(amari ==3) {
			yomi ="bon";
		}else if(amari == 0 || amari == 1 ||amari == 6 ||amari == 8 ) {
			yomi = "pon";
		}else {
			yomi = "hon";
		}

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

		int num  = scan.nextInt();
		int amari = num%10;

		if(amari ==3) {
			yomi ="bon";
		}else if(amari == 0 || amari == 1 ||amari == 6 ||amari == 8 ) {
			yomi = "pon";
		}else {
			yomi = "hon";
		}

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

		int num  = scan.nextInt();
		int amari = num%10;

		if(amari ==3) {
			yomi ="bon";
		}else if(amari == 0 || amari == 1 ||amari == 6 ||amari == 8 ) {
			yomi = "pon";
		}else {
			yomi = "hon";
		}

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

		int num  = scan.nextInt();
		int amari = num%10;

		if(amari ==3) {
			yomi ="bon";
		}else if(amari == 0 || amari == 1 ||amari == 6 ||amari == 8 ) {
			yomi = "pon";
		}else {
			yomi = "hon";
		}

		System.out.println( yomi);
	} String yomi =""; yomi "" Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int num  = scan.nextInt(); num scan.nextInt() scan.nextInt scan int amari = num%10; amari num%10 num 10 if(amari ==3) {
			yomi ="bon";
		}else if(amari == 0 || amari == 1 ||amari == 6 ||amari == 8 ) {
			yomi = "pon";
		}else {
			yomi = "hon";
		} amari ==3 amari 3 {
			yomi ="bon";
		} yomi ="bon" yomi "bon" if(amari == 0 || amari == 1 ||amari == 6 ||amari == 8 ) {
			yomi = "pon";
		}else {
			yomi = "hon";
		} amari == 0 || amari == 1 ||amari == 6 ||amari == 8 amari == 6 amari == 0 || amari == 1 ||amari == 6 ||amari == 8 amari == 0 amari 0 amari == 1 amari 1 amari == 6 amari 6 amari == 8 amari 8 {
			yomi = "pon";
		} yomi = "pon" yomi "pon" {
			yomi = "hon";
		} yomi = "hon" yomi "hon" System.out.println( yomi) System.out.println System.out System System.out yomi String[] args args public class Main {
	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		String yomi ="";
		Scanner scan = new Scanner(System.in);

		int num  = scan.nextInt();
		int amari = num%10;

		if(amari ==3) {
			yomi ="bon";
		}else if(amari == 0 || amari == 1 ||amari == 6 ||amari == 8 ) {
			yomi = "pon";
		}else {
			yomi = "hon";
		}

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

		int num  = scan.nextInt();
		int amari = num%10;

		if(amari ==3) {
			yomi ="bon";
		}else if(amari == 0 || amari == 1 ||amari == 6 ||amari == 8 ) {
			yomi = "pon";
		}else {
			yomi = "hon";
		}

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

		int num  = scan.nextInt();
		int amari = num%10;

		if(amari ==3) {
			yomi ="bon";
		}else if(amari == 0 || amari == 1 ||amari == 6 ||amari == 8 ) {
			yomi = "pon";
		}else {
			yomi = "hon";
		}

		System.out.println( yomi);
	}
}