

import java.util.Scanner;

public class Main  {

	public static  void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int N = sc.nextInt();
		String s = String.valueOf(N);
		int size = s.length();
		s = s.substring(size - 1);
			N = Integer.parseInt(s);
			
			if (N == 2 | N == 4 | N == 5 | N ==7 | N == 9) {
				System.out.println("hon");
			}else if(N == 0 | N == 1 | N == 6 | N == 8) {
				System.out.println("pon");
			}else if(N == 3) {
				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);
	int N = sc.nextInt();
		String s = String.valueOf(N);
		int size = s.length();
		s = s.substring(size - 1);
			N = Integer.parseInt(s);
			
			if (N == 2 | N == 4 | N == 5 | N ==7 | N == 9) {
				System.out.println("hon");
			}else if(N == 0 | N == 1 | N == 6 | N == 8) {
				System.out.println("pon");
			}else if(N == 3) {
				System.out.println("bon");
				
				
			}
			
		

	}

} Main public static  void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int N = sc.nextInt();
		String s = String.valueOf(N);
		int size = s.length();
		s = s.substring(size - 1);
			N = Integer.parseInt(s);
			
			if (N == 2 | N == 4 | N == 5 | N ==7 | N == 9) {
				System.out.println("hon");
			}else if(N == 0 | N == 1 | N == 6 | N == 8) {
				System.out.println("pon");
			}else if(N == 3) {
				System.out.println("bon");
				
				
			}
			
		

	} main {
	Scanner sc = new Scanner(System.in);
	int N = sc.nextInt();
		String s = String.valueOf(N);
		int size = s.length();
		s = s.substring(size - 1);
			N = Integer.parseInt(s);
			
			if (N == 2 | N == 4 | N == 5 | N ==7 | N == 9) {
				System.out.println("hon");
			}else if(N == 0 | N == 1 | N == 6 | N == 8) {
				System.out.println("pon");
			}else if(N == 3) {
				System.out.println("bon");
				
				
			}
			
		

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc String s = String.valueOf(N); s String.valueOf(N) String.valueOf String N int size = s.length(); size s.length() s.length s s = s.substring(size - 1) s s.substring(size - 1) s.substring s size - 1 size 1 N = Integer.parseInt(s) N Integer.parseInt(s) Integer.parseInt Integer s if (N == 2 | N == 4 | N == 5 | N ==7 | N == 9) {
				System.out.println("hon");
			}else if(N == 0 | N == 1 | N == 6 | N == 8) {
				System.out.println("pon");
			}else if(N == 3) {
				System.out.println("bon");
				
				
			} 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 {
				System.out.println("hon");
			} System.out.println("hon") System.out.println System.out System System.out "hon" if(N == 0 | N == 1 | N == 6 | N == 8) {
				System.out.println("pon");
			}else if(N == 3) {
				System.out.println("bon");
				
				
			} 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 {
				System.out.println("pon");
			} System.out.println("pon") System.out.println System.out System System.out "pon" if(N == 3) {
				System.out.println("bon");
				
				
			} N == 3 N 3 {
				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);
	int N = sc.nextInt();
		String s = String.valueOf(N);
		int size = s.length();
		s = s.substring(size - 1);
			N = Integer.parseInt(s);
			
			if (N == 2 | N == 4 | N == 5 | N ==7 | N == 9) {
				System.out.println("hon");
			}else if(N == 0 | N == 1 | N == 6 | N == 8) {
				System.out.println("pon");
			}else if(N == 3) {
				System.out.println("bon");
				
				
			}
			
		

	}

} public class Main  {

	public static  void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int N = sc.nextInt();
		String s = String.valueOf(N);
		int size = s.length();
		s = s.substring(size - 1);
			N = Integer.parseInt(s);
			
			if (N == 2 | N == 4 | N == 5 | N ==7 | N == 9) {
				System.out.println("hon");
			}else if(N == 0 | N == 1 | N == 6 | N == 8) {
				System.out.println("pon");
			}else if(N == 3) {
				System.out.println("bon");
				
				
			}
			
		

	}

} Main


import java.util.Scanner;

public class Main  {

	public static  void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int N = sc.nextInt();
		String s = String.valueOf(N);
		int size = s.length();
		s = s.substring(size - 1);
			N = Integer.parseInt(s);
			
			if (N == 2 | N == 4 | N == 5 | N ==7 | N == 9) {
				System.out.println("hon");
			}else if(N == 0 | N == 1 | N == 6 | N == 8) {
				System.out.println("pon");
			}else if(N == 3) {
				System.out.println("bon");
				
				
			}
			
		

	}

}
