import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		int N = scan.nextInt();
		String josushi = "hon";
		
		N %= 10;
		
		if(N == 0 || N == 1 || N == 6 || N == 8) {
			josushi = "pon";
		}else if(N == 3) {
			josushi = "bon";
		}
		
		System.out.println(josushi);
		
	}

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

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		int N = scan.nextInt();
		String josushi = "hon";
		
		N %= 10;
		
		if(N == 0 || N == 1 || N == 6 || N == 8) {
			josushi = "pon";
		}else if(N == 3) {
			josushi = "bon";
		}
		
		System.out.println(josushi);
		
	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		int N = scan.nextInt();
		String josushi = "hon";
		
		N %= 10;
		
		if(N == 0 || N == 1 || N == 6 || N == 8) {
			josushi = "pon";
		}else if(N == 3) {
			josushi = "bon";
		}
		
		System.out.println(josushi);
		
	} main {
		Scanner scan = new Scanner(System.in);
		
		int N = scan.nextInt();
		String josushi = "hon";
		
		N %= 10;
		
		if(N == 0 || N == 1 || N == 6 || N == 8) {
			josushi = "pon";
		}else if(N == 3) {
			josushi = "bon";
		}
		
		System.out.println(josushi);
		
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan String josushi = "hon"; josushi "hon" N %= 10 N 10 if(N == 0 || N == 1 || N == 6 || N == 8) {
			josushi = "pon";
		}else if(N == 3) {
			josushi = "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 {
			josushi = "pon";
		} josushi = "pon" josushi "pon" if(N == 3) {
			josushi = "bon";
		} N == 3 N 3 {
			josushi = "bon";
		} josushi = "bon" josushi "bon" System.out.println(josushi) System.out.println System.out System System.out josushi String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		int N = scan.nextInt();
		String josushi = "hon";
		
		N %= 10;
		
		if(N == 0 || N == 1 || N == 6 || N == 8) {
			josushi = "pon";
		}else if(N == 3) {
			josushi = "bon";
		}
		
		System.out.println(josushi);
		
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		int N = scan.nextInt();
		String josushi = "hon";
		
		N %= 10;
		
		if(N == 0 || N == 1 || N == 6 || N == 8) {
			josushi = "pon";
		}else if(N == 3) {
			josushi = "bon";
		}
		
		System.out.println(josushi);
		
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		int N = scan.nextInt();
		String josushi = "hon";
		
		N %= 10;
		
		if(N == 0 || N == 1 || N == 6 || N == 8) {
			josushi = "pon";
		}else if(N == 3) {
			josushi = "bon";
		}
		
		System.out.println(josushi);
		
	}

}
