import java.util.*;
public class Main {
	public static void main(String args[]) {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		String ans = "";
		n = n % 10;
		if (n == 2 || n == 4 || n == 5 || n == 7 || n == 9)
			ans = "hon";
		if (n == 0 || n == 1 || n == 6 || n == 8)
			ans = "pon";
		if (n == 3)
			ans = "bon";

		System.out.println(ans);
	}
}
 import java.util.*; util.* java public class Main {
	public static void main(String args[]) {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		String ans = "";
		n = n % 10;
		if (n == 2 || n == 4 || n == 5 || n == 7 || n == 9)
			ans = "hon";
		if (n == 0 || n == 1 || n == 6 || n == 8)
			ans = "pon";
		if (n == 3)
			ans = "bon";

		System.out.println(ans);
	}
} Main public static void main(String args[]) {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		String ans = "";
		n = n % 10;
		if (n == 2 || n == 4 || n == 5 || n == 7 || n == 9)
			ans = "hon";
		if (n == 0 || n == 1 || n == 6 || n == 8)
			ans = "pon";
		if (n == 3)
			ans = "bon";

		System.out.println(ans);
	} main {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		String ans = "";
		n = n % 10;
		if (n == 2 || n == 4 || n == 5 || n == 7 || n == 9)
			ans = "hon";
		if (n == 0 || n == 1 || n == 6 || n == 8)
			ans = "pon";
		if (n == 3)
			ans = "bon";

		System.out.println(ans);
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) int n = s.nextInt(); n s.nextInt() s.nextInt s String ans = ""; ans "" n = n % 10 n n % 10 n 10 if (n == 2 || n == 4 || n == 5 || n == 7 || n == 9)
			ans = "hon"; n == 2 || n == 4 || n == 5 || n == 7 || n == 9 n == 7 n == 5 n == 2 || n == 4 || n == 5 || n == 7 || n == 9 n == 2 n 2 n == 4 n 4 n == 5 n 5 n == 7 n 7 n == 9 n 9 ans = "hon" ans "hon" if (n == 0 || n == 1 || n == 6 || n == 8)
			ans = "pon"; n == 0 || n == 1 || n == 6 || n == 8 n == 6 n == 0 || n == 1 || n == 6 || n == 8 n == 0 n 0 n == 1 n 1 n == 6 n 6 n == 8 n 8 ans = "pon" ans "pon" if (n == 3)
			ans = "bon"; n == 3 n 3 ans = "bon" ans "bon" System.out.println(ans) System.out.println System.out System System.out ans String args[] args public class Main {
	public static void main(String args[]) {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		String ans = "";
		n = n % 10;
		if (n == 2 || n == 4 || n == 5 || n == 7 || n == 9)
			ans = "hon";
		if (n == 0 || n == 1 || n == 6 || n == 8)
			ans = "pon";
		if (n == 3)
			ans = "bon";

		System.out.println(ans);
	}
} public class Main {
	public static void main(String args[]) {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		String ans = "";
		n = n % 10;
		if (n == 2 || n == 4 || n == 5 || n == 7 || n == 9)
			ans = "hon";
		if (n == 0 || n == 1 || n == 6 || n == 8)
			ans = "pon";
		if (n == 3)
			ans = "bon";

		System.out.println(ans);
	}
} Main
import java.util.*;
public class Main {
	public static void main(String args[]) {
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		String ans = "";
		n = n % 10;
		if (n == 2 || n == 4 || n == 5 || n == 7 || n == 9)
			ans = "hon";
		if (n == 0 || n == 1 || n == 6 || n == 8)
			ans = "pon";
		if (n == 3)
			ans = "bon";

		System.out.println(ans);
	}
}

