import java.util.Scanner;

public class Main {

	public static void main(final String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		sc.close();
		switch (N % 10) {
			case 3:
				System.out.println("bon");
				break;
			case 0:
			case 1:
			case 6:
			case 8:
				System.out.println("pon");
				break;
			default:
				System.out.println("hon");
				break;
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(final String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		sc.close();
		switch (N % 10) {
			case 3:
				System.out.println("bon");
				break;
			case 0:
			case 1:
			case 6:
			case 8:
				System.out.println("pon");
				break;
			default:
				System.out.println("hon");
				break;
		}
	}
} Main public static void main(final String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		sc.close();
		switch (N % 10) {
			case 3:
				System.out.println("bon");
				break;
			case 0:
			case 1:
			case 6:
			case 8:
				System.out.println("pon");
				break;
			default:
				System.out.println("hon");
				break;
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		sc.close();
		switch (N % 10) {
			case 3:
				System.out.println("bon");
				break;
			case 0:
			case 1:
			case 6:
			case 8:
				System.out.println("pon");
				break;
			default:
				System.out.println("hon");
				break;
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc sc.close() sc.close sc switch (N % 10) {
			case 3:
				System.out.println("bon");
				break;
			case 0:
			case 1:
			case 6:
			case 8:
				System.out.println("pon");
				break;
			default:
				System.out.println("hon");
				break;
		} N % 10 N 10 case 3: 3 case 3: System.out.println("bon") System.out.println System.out System System.out "bon" break; case 0: 0 case 0: case 1: 1 case 1: case 6: 6 case 6: case 8: 8 case 8: System.out.println("pon") System.out.println System.out System System.out "pon" break; default: default: System.out.println("hon") System.out.println System.out System System.out "hon" break; final String[] args args public class Main {

	public static void main(final String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		sc.close();
		switch (N % 10) {
			case 3:
				System.out.println("bon");
				break;
			case 0:
			case 1:
			case 6:
			case 8:
				System.out.println("pon");
				break;
			default:
				System.out.println("hon");
				break;
		}
	}
} public class Main {

	public static void main(final String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		sc.close();
		switch (N % 10) {
			case 3:
				System.out.println("bon");
				break;
			case 0:
			case 1:
			case 6:
			case 8:
				System.out.println("pon");
				break;
			default:
				System.out.println("hon");
				break;
		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(final String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		sc.close();
		switch (N % 10) {
			case 3:
				System.out.println("bon");
				break;
			case 0:
			case 1:
			case 6:
			case 8:
				System.out.println("pon");
				break;
			default:
				System.out.println("hon");
				break;
		}
	}
}
