import java.util.*;
public class Main {

		static void solve() {
			Scanner sc = new Scanner (System.in);
			int n = sc.nextInt();
			int mod = n%10;
			if(mod==3) {
				System.out.println("bon");
			}
			else if(mod==2||mod==4||mod==5||mod==7||mod==9) {
				System.out.println("hon");
			}
			else {
				System.out.println("pon");
			}
			sc.close();
		}
	public static void main(String[] args) {
		solve();

	}

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

		static void solve() {
			Scanner sc = new Scanner (System.in);
			int n = sc.nextInt();
			int mod = n%10;
			if(mod==3) {
				System.out.println("bon");
			}
			else if(mod==2||mod==4||mod==5||mod==7||mod==9) {
				System.out.println("hon");
			}
			else {
				System.out.println("pon");
			}
			sc.close();
		}
	public static void main(String[] args) {
		solve();

	}

} Main static void solve() {
			Scanner sc = new Scanner (System.in);
			int n = sc.nextInt();
			int mod = n%10;
			if(mod==3) {
				System.out.println("bon");
			}
			else if(mod==2||mod==4||mod==5||mod==7||mod==9) {
				System.out.println("hon");
			}
			else {
				System.out.println("pon");
			}
			sc.close();
		} solve {
			Scanner sc = new Scanner (System.in);
			int n = sc.nextInt();
			int mod = n%10;
			if(mod==3) {
				System.out.println("bon");
			}
			else if(mod==2||mod==4||mod==5||mod==7||mod==9) {
				System.out.println("hon");
			}
			else {
				System.out.println("pon");
			}
			sc.close();
		} Scanner sc = new Scanner (System.in); sc new Scanner (System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int mod = n%10; mod n%10 n 10 if(mod==3) {
				System.out.println("bon");
			}
			else if(mod==2||mod==4||mod==5||mod==7||mod==9) {
				System.out.println("hon");
			}
			else {
				System.out.println("pon");
			} mod==3 mod 3 {
				System.out.println("bon");
			} System.out.println("bon") System.out.println System.out System System.out "bon" if(mod==2||mod==4||mod==5||mod==7||mod==9) {
				System.out.println("hon");
			}
			else {
				System.out.println("pon");
			} mod==2||mod==4||mod==5||mod==7||mod==9 mod==7 mod==5 mod==2||mod==4||mod==5||mod==7||mod==9 mod==2 mod 2 mod==4 mod 4 mod==5 mod 5 mod==7 mod 7 mod==9 mod 9 {
				System.out.println("hon");
			} System.out.println("hon") System.out.println System.out System System.out "hon" {
				System.out.println("pon");
			} System.out.println("pon") System.out.println System.out System System.out "pon" sc.close() sc.close sc public static void main(String[] args) {
		solve();

	} main {
		solve();

	} solve() solve String[] args args public class Main {

		static void solve() {
			Scanner sc = new Scanner (System.in);
			int n = sc.nextInt();
			int mod = n%10;
			if(mod==3) {
				System.out.println("bon");
			}
			else if(mod==2||mod==4||mod==5||mod==7||mod==9) {
				System.out.println("hon");
			}
			else {
				System.out.println("pon");
			}
			sc.close();
		}
	public static void main(String[] args) {
		solve();

	}

} public class Main {

		static void solve() {
			Scanner sc = new Scanner (System.in);
			int n = sc.nextInt();
			int mod = n%10;
			if(mod==3) {
				System.out.println("bon");
			}
			else if(mod==2||mod==4||mod==5||mod==7||mod==9) {
				System.out.println("hon");
			}
			else {
				System.out.println("pon");
			}
			sc.close();
		}
	public static void main(String[] args) {
		solve();

	}

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

		static void solve() {
			Scanner sc = new Scanner (System.in);
			int n = sc.nextInt();
			int mod = n%10;
			if(mod==3) {
				System.out.println("bon");
			}
			else if(mod==2||mod==4||mod==5||mod==7||mod==9) {
				System.out.println("hon");
			}
			else {
				System.out.println("pon");
			}
			sc.close();
		}
	public static void main(String[] args) {
		solve();

	}

}
