

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		n %= 10;
		String result = digit(n);
		System.out.println(result);

	}
	private static String digit(int n) {
		if(n == 3) {
			return "bon";
		} else if (n == 0 || n == 1 || n == 6 || n == 8) {
			return "pon";
		} else {
			return "hon";
		}
	}

} 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();
		n %= 10;
		String result = digit(n);
		System.out.println(result);

	}
	private static String digit(int n) {
		if(n == 3) {
			return "bon";
		} else if (n == 0 || n == 1 || n == 6 || n == 8) {
			return "pon";
		} else {
			return "hon";
		}
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		n %= 10;
		String result = digit(n);
		System.out.println(result);

	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		n %= 10;
		String result = digit(n);
		System.out.println(result);

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		n %= 10;
		String result = digit(n);
		System.out.println(result);

	}
	private static String digit(int n) {
		if(n == 3) {
			return "bon";
		} else if (n == 0 || n == 1 || n == 6 || n == 8) {
			return "pon";
		} else {
			return "hon";
		}
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		n %= 10;
		String result = digit(n);
		System.out.println(result);

	}
	private static String digit(int n) {
		if(n == 3) {
			return "bon";
		} else if (n == 0 || n == 1 || n == 6 || n == 8) {
			return "pon";
		} else {
			return "hon";
		}
	}

} Main


import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		n %= 10;
		String result = digit(n);
		System.out.println(result);

	}
	private static String digit(int n) {
		if(n == 3) {
			return "bon";
		} else if (n == 0 || n == 1 || n == 6 || n == 8) {
			return "pon";
		} else {
			return "hon";
		}
	}

}
