import java.util.Scanner;

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

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();

		int l = String.valueOf(a).length();

		String r = String.valueOf(a).substring(l - 1);
		int p = Integer.parseInt(r);

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

		int a = sc.nextInt();

		int l = String.valueOf(a).length();

		String r = String.valueOf(a).substring(l - 1);
		int p = Integer.parseInt(r);

		if (p == 3) {
			System.out.println("bon");
		} else if (p == 0 || p == 1 || p == 6 || p == 8) {
			System.out.println("pon");
		} else {
			System.out.println("hon");
		}
	}
} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();

		int l = String.valueOf(a).length();

		String r = String.valueOf(a).substring(l - 1);
		int p = Integer.parseInt(r);

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

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();

		int l = String.valueOf(a).length();

		String r = String.valueOf(a).substring(l - 1);
		int p = Integer.parseInt(r);

		if (p == 3) {
			System.out.println("bon");
		} else if (p == 0 || p == 1 || p == 6 || p == 8) {
			System.out.println("pon");
		} else {
			System.out.println("hon");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int l = String.valueOf(a).length(); l String.valueOf(a).length() String.valueOf(a).length String.valueOf(a) String.valueOf String a String r = String.valueOf(a).substring(l - 1); r String.valueOf(a).substring(l - 1) String.valueOf(a).substring String.valueOf(a) String.valueOf String a l - 1 l 1 int p = Integer.parseInt(r); p Integer.parseInt(r) Integer.parseInt Integer r if (p == 3) {
			System.out.println("bon");
		} else if (p == 0 || p == 1 || p == 6 || p == 8) {
			System.out.println("pon");
		} else {
			System.out.println("hon");
		} p == 3 p 3 {
			System.out.println("bon");
		} System.out.println("bon") System.out.println System.out System System.out "bon" if (p == 0 || p == 1 || p == 6 || p == 8) {
			System.out.println("pon");
		} else {
			System.out.println("hon");
		} p == 0 || p == 1 || p == 6 || p == 8 p == 6 p == 0 || p == 1 || p == 6 || p == 8 p == 0 p 0 p == 1 p 1 p == 6 p 6 p == 8 p 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 sc = new Scanner(System.in);

		int a = sc.nextInt();

		int l = String.valueOf(a).length();

		String r = String.valueOf(a).substring(l - 1);
		int p = Integer.parseInt(r);

		if (p == 3) {
			System.out.println("bon");
		} else if (p == 0 || p == 1 || p == 6 || p == 8) {
			System.out.println("pon");
		} else {
			System.out.println("hon");
		}
	}
} public class Main {
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();

		int l = String.valueOf(a).length();

		String r = String.valueOf(a).substring(l - 1);
		int p = Integer.parseInt(r);

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

		int a = sc.nextInt();

		int l = String.valueOf(a).length();

		String r = String.valueOf(a).substring(l - 1);
		int p = Integer.parseInt(r);

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