import java.util.*;
import java.io.*;
import java.nio.charset.StandardCharsets;

public class Main {

	public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		Main ins = new Main(in);
		ins.calc();
		ins.showResult();
	}

	Main(BufferedReader in) throws IOException {
		String S = in.readLine();
		char c = S.charAt(S.length() - 1);
		switch (c) {
		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");

		}

	}

	void calc() {
	}

	void showResult() {
	}

} import java.util.*; util.* java import java.io.*; io.* java import java.nio.charset.StandardCharsets; StandardCharsets java.nio.charset public class Main {

	public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		Main ins = new Main(in);
		ins.calc();
		ins.showResult();
	}

	Main(BufferedReader in) throws IOException {
		String S = in.readLine();
		char c = S.charAt(S.length() - 1);
		switch (c) {
		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");

		}

	}

	void calc() {
	}

	void showResult() {
	}

} Main public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		Main ins = new Main(in);
		ins.calc();
		ins.showResult();
	} main {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		Main ins = new Main(in);
		ins.calc();
		ins.showResult();
	} InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8); reader new InputStreamReader(System.in, StandardCharsets.UTF_8) BufferedReader in = new BufferedReader(reader); in new BufferedReader(reader) Main ins = new Main(in); ins new Main(in) ins.calc() ins.calc ins ins.showResult() ins.showResult ins String[] args args Main(BufferedReader in) throws IOException {
		String S = in.readLine();
		char c = S.charAt(S.length() - 1);
		switch (c) {
		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");

		}

	} Main {
		String S = in.readLine();
		char c = S.charAt(S.length() - 1);
		switch (c) {
		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");

		}

	} String S = in.readLine(); S in.readLine() in.readLine in char c = S.charAt(S.length() - 1); c S.charAt(S.length() - 1) S.charAt S S.length() - 1 S.length() S.length S 1 switch (c) {
		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");

		} c 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" BufferedReader in in void calc() {
	} calc {
	} void showResult() {
	} showResult {
	} public class Main {

	public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		Main ins = new Main(in);
		ins.calc();
		ins.showResult();
	}

	Main(BufferedReader in) throws IOException {
		String S = in.readLine();
		char c = S.charAt(S.length() - 1);
		switch (c) {
		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");

		}

	}

	void calc() {
	}

	void showResult() {
	}

} public class Main {

	public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		Main ins = new Main(in);
		ins.calc();
		ins.showResult();
	}

	Main(BufferedReader in) throws IOException {
		String S = in.readLine();
		char c = S.charAt(S.length() - 1);
		switch (c) {
		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");

		}

	}

	void calc() {
	}

	void showResult() {
	}

} Main
import java.util.*;
import java.io.*;
import java.nio.charset.StandardCharsets;

public class Main {

	public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		Main ins = new Main(in);
		ins.calc();
		ins.showResult();
	}

	Main(BufferedReader in) throws IOException {
		String S = in.readLine();
		char c = S.charAt(S.length() - 1);
		switch (c) {
		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");

		}

	}

	void calc() {
	}

	void showResult() {
	}

}
