import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String s = sc.next();

		char c = s.charAt(s.length() - 1);

		String a = "24579";
		String b = "0168";

		if (a.indexOf(c) > -1) {
			System.out.println("hon");
		} else if (b.indexOf(c) > -1) {
			System.out.println("pon");
		} else {
			System.out.println("bon");
		}

	}

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

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String s = sc.next();

		char c = s.charAt(s.length() - 1);

		String a = "24579";
		String b = "0168";

		if (a.indexOf(c) > -1) {
			System.out.println("hon");
		} else if (b.indexOf(c) > -1) {
			System.out.println("pon");
		} else {
			System.out.println("bon");
		}

	}

} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String s = sc.next();

		char c = s.charAt(s.length() - 1);

		String a = "24579";
		String b = "0168";

		if (a.indexOf(c) > -1) {
			System.out.println("hon");
		} else if (b.indexOf(c) > -1) {
			System.out.println("pon");
		} else {
			System.out.println("bon");
		}

	} main {

		Scanner sc = new Scanner(System.in);

		String s = sc.next();

		char c = s.charAt(s.length() - 1);

		String a = "24579";
		String b = "0168";

		if (a.indexOf(c) > -1) {
			System.out.println("hon");
		} else if (b.indexOf(c) > -1) {
			System.out.println("pon");
		} else {
			System.out.println("bon");
		}

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc char c = s.charAt(s.length() - 1); c s.charAt(s.length() - 1) s.charAt s s.length() - 1 s.length() s.length s 1 String a = "24579"; a "24579" String b = "0168"; b "0168" if (a.indexOf(c) > -1) {
			System.out.println("hon");
		} else if (b.indexOf(c) > -1) {
			System.out.println("pon");
		} else {
			System.out.println("bon");
		} a.indexOf(c) > -1 a.indexOf(c) a.indexOf a c -1 1 {
			System.out.println("hon");
		} System.out.println("hon") System.out.println System.out System System.out "hon" if (b.indexOf(c) > -1) {
			System.out.println("pon");
		} else {
			System.out.println("bon");
		} b.indexOf(c) > -1 b.indexOf(c) b.indexOf b c -1 1 {
			System.out.println("pon");
		} System.out.println("pon") System.out.println System.out System System.out "pon" {
			System.out.println("bon");
		} System.out.println("bon") System.out.println System.out System System.out "bon" String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String s = sc.next();

		char c = s.charAt(s.length() - 1);

		String a = "24579";
		String b = "0168";

		if (a.indexOf(c) > -1) {
			System.out.println("hon");
		} else if (b.indexOf(c) > -1) {
			System.out.println("pon");
		} else {
			System.out.println("bon");
		}

	}

} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String s = sc.next();

		char c = s.charAt(s.length() - 1);

		String a = "24579";
		String b = "0168";

		if (a.indexOf(c) > -1) {
			System.out.println("hon");
		} else if (b.indexOf(c) > -1) {
			System.out.println("pon");
		} else {
			System.out.println("bon");
		}

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		String s = sc.next();

		char c = s.charAt(s.length() - 1);

		String a = "24579";
		String b = "0168";

		if (a.indexOf(c) > -1) {
			System.out.println("hon");
		} else if (b.indexOf(c) > -1) {
			System.out.println("pon");
		} else {
			System.out.println("bon");
		}

	}

}