import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		String a = scan.next();
		String b = a.substring(a.length() - 1);

		if(b.equals("3")) {
			System.out.println("bon");
		}else if(b.equals("0") || b.equals("1") || b.equals("6") || b.equals("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) {
		Scanner scan = new Scanner(System.in);

		String a = scan.next();
		String b = a.substring(a.length() - 1);

		if(b.equals("3")) {
			System.out.println("bon");
		}else if(b.equals("0") || b.equals("1") || b.equals("6") || b.equals("8")) {
			System.out.println("pon");
		}else {
			System.out.println("hon");
		}

	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		String a = scan.next();
		String b = a.substring(a.length() - 1);

		if(b.equals("3")) {
			System.out.println("bon");
		}else if(b.equals("0") || b.equals("1") || b.equals("6") || b.equals("8")) {
			System.out.println("pon");
		}else {
			System.out.println("hon");
		}

	} main {
		Scanner scan = new Scanner(System.in);

		String a = scan.next();
		String b = a.substring(a.length() - 1);

		if(b.equals("3")) {
			System.out.println("bon");
		}else if(b.equals("0") || b.equals("1") || b.equals("6") || b.equals("8")) {
			System.out.println("pon");
		}else {
			System.out.println("hon");
		}

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String a = scan.next(); a scan.next() scan.next scan String b = a.substring(a.length() - 1); b a.substring(a.length() - 1) a.substring a a.length() - 1 a.length() a.length a 1 if(b.equals("3")) {
			System.out.println("bon");
		}else if(b.equals("0") || b.equals("1") || b.equals("6") || b.equals("8")) {
			System.out.println("pon");
		}else {
			System.out.println("hon");
		} b.equals("3") b.equals b "3" {
			System.out.println("bon");
		} System.out.println("bon") System.out.println System.out System System.out "bon" if(b.equals("0") || b.equals("1") || b.equals("6") || b.equals("8")) {
			System.out.println("pon");
		}else {
			System.out.println("hon");
		} b.equals("0") || b.equals("1") || b.equals("6") || b.equals("8") b.equals("6") b.equals("0") || b.equals("1") || b.equals("6") || b.equals("8") b.equals("0") b.equals b "0" b.equals("1") b.equals b "1" b.equals("6") b.equals b "6" b.equals("8") b.equals b "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) {
		Scanner scan = new Scanner(System.in);

		String a = scan.next();
		String b = a.substring(a.length() - 1);

		if(b.equals("3")) {
			System.out.println("bon");
		}else if(b.equals("0") || b.equals("1") || b.equals("6") || b.equals("8")) {
			System.out.println("pon");
		}else {
			System.out.println("hon");
		}

	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		String a = scan.next();
		String b = a.substring(a.length() - 1);

		if(b.equals("3")) {
			System.out.println("bon");
		}else if(b.equals("0") || b.equals("1") || b.equals("6") || b.equals("8")) {
			System.out.println("pon");
		}else {
			System.out.println("hon");
		}

	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		String a = scan.next();
		String b = a.substring(a.length() - 1);

		if(b.equals("3")) {
			System.out.println("bon");
		}else if(b.equals("0") || b.equals("1") || b.equals("6") || b.equals("8")) {
			System.out.println("pon");
		}else {
			System.out.println("hon");
		}

	}
}