import java.util.Scanner;
import java.util.Arrays;
import java.util.List;

public class Main {
	public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
	    String input = sc.nextLine();
		String ichi = input.substring(input.length() - 1);
		String result = "";
		switch (ichi) {
			case "3":
				result = "bon";
				break;
			case "0":
			case "1":
			case "6":
			case "8":
				result = "pon";
				break;
			default:
				result = "hon";
		}
	    System.out.println(result);
	}
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util import java.util.List; List java.util public class Main {
	public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
	    String input = sc.nextLine();
		String ichi = input.substring(input.length() - 1);
		String result = "";
		switch (ichi) {
			case "3":
				result = "bon";
				break;
			case "0":
			case "1":
			case "6":
			case "8":
				result = "pon";
				break;
			default:
				result = "hon";
		}
	    System.out.println(result);
	}
} Main public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
	    String input = sc.nextLine();
		String ichi = input.substring(input.length() - 1);
		String result = "";
		switch (ichi) {
			case "3":
				result = "bon";
				break;
			case "0":
			case "1":
			case "6":
			case "8":
				result = "pon";
				break;
			default:
				result = "hon";
		}
	    System.out.println(result);
	} main {
	    Scanner sc = new Scanner(System.in);
	    String input = sc.nextLine();
		String ichi = input.substring(input.length() - 1);
		String result = "";
		switch (ichi) {
			case "3":
				result = "bon";
				break;
			case "0":
			case "1":
			case "6":
			case "8":
				result = "pon";
				break;
			default:
				result = "hon";
		}
	    System.out.println(result);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String input = sc.nextLine(); input sc.nextLine() sc.nextLine sc String ichi = input.substring(input.length() - 1); ichi input.substring(input.length() - 1) input.substring input input.length() - 1 input.length() input.length input 1 String result = ""; result "" switch (ichi) {
			case "3":
				result = "bon";
				break;
			case "0":
			case "1":
			case "6":
			case "8":
				result = "pon";
				break;
			default:
				result = "hon";
		} ichi case "3": "3" case "3": result = "bon" result "bon" break; case "0": "0" case "0": case "1": "1" case "1": case "6": "6" case "6": case "8": "8" case "8": result = "pon" result "pon" break; default: default: result = "hon" result "hon" System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {
	public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
	    String input = sc.nextLine();
		String ichi = input.substring(input.length() - 1);
		String result = "";
		switch (ichi) {
			case "3":
				result = "bon";
				break;
			case "0":
			case "1":
			case "6":
			case "8":
				result = "pon";
				break;
			default:
				result = "hon";
		}
	    System.out.println(result);
	}
} public class Main {
	public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
	    String input = sc.nextLine();
		String ichi = input.substring(input.length() - 1);
		String result = "";
		switch (ichi) {
			case "3":
				result = "bon";
				break;
			case "0":
			case "1":
			case "6":
			case "8":
				result = "pon";
				break;
			default:
				result = "hon";
		}
	    System.out.println(result);
	}
} Main
import java.util.Scanner;
import java.util.Arrays;
import java.util.List;

public class Main {
	public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
	    String input = sc.nextLine();
		String ichi = input.substring(input.length() - 1);
		String result = "";
		switch (ichi) {
			case "3":
				result = "bon";
				break;
			case "0":
			case "1":
			case "6":
			case "8":
				result = "pon";
				break;
			default:
				result = "hon";
		}
	    System.out.println(result);
	}
}
