import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		// 入力値の取得
		String N = sc.next();

		// 結果の出力
		char lastChar = N.charAt(N.length() - 1);
		if (lastChar == '3') {
			System.out.println("bon");
		} else if (lastChar == '0' || lastChar == '1' || lastChar == '6' || lastChar == '8') {
			System.out.println("pon");
		} else {
			System.out.println("hon");
		}

		sc.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		// 入力値の取得
		String N = sc.next();

		// 結果の出力
		char lastChar = N.charAt(N.length() - 1);
		if (lastChar == '3') {
			System.out.println("bon");
		} else if (lastChar == '0' || lastChar == '1' || lastChar == '6' || lastChar == '8') {
			System.out.println("pon");
		} else {
			System.out.println("hon");
		}

		sc.close();
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		// 入力値の取得
		String N = sc.next();

		// 結果の出力
		char lastChar = N.charAt(N.length() - 1);
		if (lastChar == '3') {
			System.out.println("bon");
		} else if (lastChar == '0' || lastChar == '1' || lastChar == '6' || lastChar == '8') {
			System.out.println("pon");
		} else {
			System.out.println("hon");
		}

		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);

		// 入力値の取得
		String N = sc.next();

		// 結果の出力
		char lastChar = N.charAt(N.length() - 1);
		if (lastChar == '3') {
			System.out.println("bon");
		} else if (lastChar == '0' || lastChar == '1' || lastChar == '6' || lastChar == '8') {
			System.out.println("pon");
		} else {
			System.out.println("hon");
		}

		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String N = sc.next(); N sc.next() sc.next sc char lastChar = N.charAt(N.length() - 1); lastChar N.charAt(N.length() - 1) N.charAt N N.length() - 1 N.length() N.length N 1 if (lastChar == '3') {
			System.out.println("bon");
		} else if (lastChar == '0' || lastChar == '1' || lastChar == '6' || lastChar == '8') {
			System.out.println("pon");
		} else {
			System.out.println("hon");
		} lastChar == '3' lastChar '3' {
			System.out.println("bon");
		} System.out.println("bon") System.out.println System.out System System.out "bon" if (lastChar == '0' || lastChar == '1' || lastChar == '6' || lastChar == '8') {
			System.out.println("pon");
		} else {
			System.out.println("hon");
		} lastChar == '0' || lastChar == '1' || lastChar == '6' || lastChar == '8' lastChar == '6' lastChar == '0' || lastChar == '1' || lastChar == '6' || lastChar == '8' lastChar == '0' lastChar '0' lastChar == '1' lastChar '1' lastChar == '6' lastChar '6' lastChar == '8' lastChar '8' {
			System.out.println("pon");
		} System.out.println("pon") System.out.println System.out System System.out "pon" {
			System.out.println("hon");
		} System.out.println("hon") System.out.println System.out System System.out "hon" sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		// 入力値の取得
		String N = sc.next();

		// 結果の出力
		char lastChar = N.charAt(N.length() - 1);
		if (lastChar == '3') {
			System.out.println("bon");
		} else if (lastChar == '0' || lastChar == '1' || lastChar == '6' || lastChar == '8') {
			System.out.println("pon");
		} else {
			System.out.println("hon");
		}

		sc.close();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		// 入力値の取得
		String N = sc.next();

		// 結果の出力
		char lastChar = N.charAt(N.length() - 1);
		if (lastChar == '3') {
			System.out.println("bon");
		} else if (lastChar == '0' || lastChar == '1' || lastChar == '6' || lastChar == '8') {
			System.out.println("pon");
		} else {
			System.out.println("hon");
		}

		sc.close();
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		// 入力値の取得
		String N = sc.next();

		// 結果の出力
		char lastChar = N.charAt(N.length() - 1);
		if (lastChar == '3') {
			System.out.println("bon");
		} else if (lastChar == '0' || lastChar == '1' || lastChar == '6' || lastChar == '8') {
			System.out.println("pon");
		} else {
			System.out.println("hon");
		}

		sc.close();
	}
}
