import java.io.*;
import java.util.*;

public class Main {

	static long pmod = 1000000007L;

	public static void main(String[] args) throws IOException {

//		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
//		PrintWriter op = new PrintWriter(System.out);
//		StringTokenizer ste = new StringTokenizer(br.readLine());
//
//		StringBuilder ash = new StringBuilder();
//		for (int tcs = Integer.parseInt(ste.nextToken()) - 1; tcs >= 0; --tcs) {
//
//			ste = new StringTokenizer(br.readLine());
//			String s1 = ste.nextToken();
//
//		}
//		op.print(ash);
//		op.flush();
		Scanner scn = new Scanner(System.in);
		String n = scn.next();
		char ch = n.charAt(n.length() - 1);
		if (ch == '3')
			System.out.println("bon");
		else if (ch == '0' || ch == '1' || ch == '6' || ch == '8')
			System.out.println("pon");
		else
			System.out.println("hon");

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

	static long pmod = 1000000007L;

	public static void main(String[] args) throws IOException {

//		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
//		PrintWriter op = new PrintWriter(System.out);
//		StringTokenizer ste = new StringTokenizer(br.readLine());
//
//		StringBuilder ash = new StringBuilder();
//		for (int tcs = Integer.parseInt(ste.nextToken()) - 1; tcs >= 0; --tcs) {
//
//			ste = new StringTokenizer(br.readLine());
//			String s1 = ste.nextToken();
//
//		}
//		op.print(ash);
//		op.flush();
		Scanner scn = new Scanner(System.in);
		String n = scn.next();
		char ch = n.charAt(n.length() - 1);
		if (ch == '3')
			System.out.println("bon");
		else if (ch == '0' || ch == '1' || ch == '6' || ch == '8')
			System.out.println("pon");
		else
			System.out.println("hon");

	}
} Main static long pmod = 1000000007L; pmod 1000000007L public static void main(String[] args) throws IOException {

//		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
//		PrintWriter op = new PrintWriter(System.out);
//		StringTokenizer ste = new StringTokenizer(br.readLine());
//
//		StringBuilder ash = new StringBuilder();
//		for (int tcs = Integer.parseInt(ste.nextToken()) - 1; tcs >= 0; --tcs) {
//
//			ste = new StringTokenizer(br.readLine());
//			String s1 = ste.nextToken();
//
//		}
//		op.print(ash);
//		op.flush();
		Scanner scn = new Scanner(System.in);
		String n = scn.next();
		char ch = n.charAt(n.length() - 1);
		if (ch == '3')
			System.out.println("bon");
		else if (ch == '0' || ch == '1' || ch == '6' || ch == '8')
			System.out.println("pon");
		else
			System.out.println("hon");

	} main {

//		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
//		PrintWriter op = new PrintWriter(System.out);
//		StringTokenizer ste = new StringTokenizer(br.readLine());
//
//		StringBuilder ash = new StringBuilder();
//		for (int tcs = Integer.parseInt(ste.nextToken()) - 1; tcs >= 0; --tcs) {
//
//			ste = new StringTokenizer(br.readLine());
//			String s1 = ste.nextToken();
//
//		}
//		op.print(ash);
//		op.flush();
		Scanner scn = new Scanner(System.in);
		String n = scn.next();
		char ch = n.charAt(n.length() - 1);
		if (ch == '3')
			System.out.println("bon");
		else if (ch == '0' || ch == '1' || ch == '6' || ch == '8')
			System.out.println("pon");
		else
			System.out.println("hon");

	} Scanner scn = new Scanner(System.in); scn new Scanner(System.in) String n = scn.next(); n scn.next() scn.next scn char ch = n.charAt(n.length() - 1); ch n.charAt(n.length() - 1) n.charAt n n.length() - 1 n.length() n.length n 1 if (ch == '3')
			System.out.println("bon");
		else if (ch == '0' || ch == '1' || ch == '6' || ch == '8')
			System.out.println("pon");
		else
			System.out.println("hon"); ch == '3' ch '3' System.out.println("bon") System.out.println System.out System System.out "bon" if (ch == '0' || ch == '1' || ch == '6' || ch == '8')
			System.out.println("pon");
		else
			System.out.println("hon"); ch == '0' || ch == '1' || ch == '6' || ch == '8' ch == '6' ch == '0' || ch == '1' || ch == '6' || ch == '8' ch == '0' ch '0' ch == '1' ch '1' ch == '6' ch '6' ch == '8' ch '8' System.out.println("pon") System.out.println System.out System System.out "pon" System.out.println("hon") System.out.println System.out System System.out "hon" String[] args args public class Main {

	static long pmod = 1000000007L;

	public static void main(String[] args) throws IOException {

//		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
//		PrintWriter op = new PrintWriter(System.out);
//		StringTokenizer ste = new StringTokenizer(br.readLine());
//
//		StringBuilder ash = new StringBuilder();
//		for (int tcs = Integer.parseInt(ste.nextToken()) - 1; tcs >= 0; --tcs) {
//
//			ste = new StringTokenizer(br.readLine());
//			String s1 = ste.nextToken();
//
//		}
//		op.print(ash);
//		op.flush();
		Scanner scn = new Scanner(System.in);
		String n = scn.next();
		char ch = n.charAt(n.length() - 1);
		if (ch == '3')
			System.out.println("bon");
		else if (ch == '0' || ch == '1' || ch == '6' || ch == '8')
			System.out.println("pon");
		else
			System.out.println("hon");

	}
} public class Main {

	static long pmod = 1000000007L;

	public static void main(String[] args) throws IOException {

//		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
//		PrintWriter op = new PrintWriter(System.out);
//		StringTokenizer ste = new StringTokenizer(br.readLine());
//
//		StringBuilder ash = new StringBuilder();
//		for (int tcs = Integer.parseInt(ste.nextToken()) - 1; tcs >= 0; --tcs) {
//
//			ste = new StringTokenizer(br.readLine());
//			String s1 = ste.nextToken();
//
//		}
//		op.print(ash);
//		op.flush();
		Scanner scn = new Scanner(System.in);
		String n = scn.next();
		char ch = n.charAt(n.length() - 1);
		if (ch == '3')
			System.out.println("bon");
		else if (ch == '0' || ch == '1' || ch == '6' || ch == '8')
			System.out.println("pon");
		else
			System.out.println("hon");

	}
} Main
import java.io.*;
import java.util.*;

public class Main {

	static long pmod = 1000000007L;

	public static void main(String[] args) throws IOException {

//		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
//		PrintWriter op = new PrintWriter(System.out);
//		StringTokenizer ste = new StringTokenizer(br.readLine());
//
//		StringBuilder ash = new StringBuilder();
//		for (int tcs = Integer.parseInt(ste.nextToken()) - 1; tcs >= 0; --tcs) {
//
//			ste = new StringTokenizer(br.readLine());
//			String s1 = ste.nextToken();
//
//		}
//		op.print(ash);
//		op.flush();
		Scanner scn = new Scanner(System.in);
		String n = scn.next();
		char ch = n.charAt(n.length() - 1);
		if (ch == '3')
			System.out.println("bon");
		else if (ch == '0' || ch == '1' || ch == '6' || ch == '8')
			System.out.println("pon");
		else
			System.out.println("hon");

	}
}