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

	public static void main(String[] args) throws Exception{
		int num = 998244353;

		// TODO Auto-generated method stub
 		BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
 		PrintWriter out = new PrintWriter(System.out);
 		int n = Integer.parseInt(bf.readLine());
 		int k = n%10;
 		if (k == 3)
 			out.println("bon");
 		else if (k == 0 || k == 1 || k == 6 || k == 8)
 			out.println("pon");
 		else
 			out.println("hon");
 		out.close();
 		
 		
 		
 	}
}
 	
 
//StringJoiner sj = new StringJoiner(" "); 
//sj.add(strings)
//sj.toString() gives string of those stuff w spaces or whatever that sequence is

 		
 		
 		
 		
	

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

	public static void main(String[] args) throws Exception{
		int num = 998244353;

		// TODO Auto-generated method stub
 		BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
 		PrintWriter out = new PrintWriter(System.out);
 		int n = Integer.parseInt(bf.readLine());
 		int k = n%10;
 		if (k == 3)
 			out.println("bon");
 		else if (k == 0 || k == 1 || k == 6 || k == 8)
 			out.println("pon");
 		else
 			out.println("hon");
 		out.close();
 		
 		
 		
 	}
} Main public static void main(String[] args) throws Exception{
		int num = 998244353;

		// TODO Auto-generated method stub
 		BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
 		PrintWriter out = new PrintWriter(System.out);
 		int n = Integer.parseInt(bf.readLine());
 		int k = n%10;
 		if (k == 3)
 			out.println("bon");
 		else if (k == 0 || k == 1 || k == 6 || k == 8)
 			out.println("pon");
 		else
 			out.println("hon");
 		out.close();
 		
 		
 		
 	} main {
		int num = 998244353;

		// TODO Auto-generated method stub
 		BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
 		PrintWriter out = new PrintWriter(System.out);
 		int n = Integer.parseInt(bf.readLine());
 		int k = n%10;
 		if (k == 3)
 			out.println("bon");
 		else if (k == 0 || k == 1 || k == 6 || k == 8)
 			out.println("pon");
 		else
 			out.println("hon");
 		out.close();
 		
 		
 		
 	} int num = 998244353; num 998244353 BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); bf new BufferedReader(new InputStreamReader(System.in)) PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) int n = Integer.parseInt(bf.readLine()); n Integer.parseInt(bf.readLine()) Integer.parseInt Integer bf.readLine() bf.readLine bf int k = n%10; k n%10 n 10 if (k == 3)
 			out.println("bon");
 		else if (k == 0 || k == 1 || k == 6 || k == 8)
 			out.println("pon");
 		else
 			out.println("hon"); k == 3 k 3 out.println("bon") out.println out "bon" if (k == 0 || k == 1 || k == 6 || k == 8)
 			out.println("pon");
 		else
 			out.println("hon"); k == 0 || k == 1 || k == 6 || k == 8 k == 6 k == 0 || k == 1 || k == 6 || k == 8 k == 0 k 0 k == 1 k 1 k == 6 k 6 k == 8 k 8 out.println("pon") out.println out "pon" out.println("hon") out.println out "hon" out.close() out.close out String[] args args public class Main {

	public static void main(String[] args) throws Exception{
		int num = 998244353;

		// TODO Auto-generated method stub
 		BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
 		PrintWriter out = new PrintWriter(System.out);
 		int n = Integer.parseInt(bf.readLine());
 		int k = n%10;
 		if (k == 3)
 			out.println("bon");
 		else if (k == 0 || k == 1 || k == 6 || k == 8)
 			out.println("pon");
 		else
 			out.println("hon");
 		out.close();
 		
 		
 		
 	}
} public class Main {

	public static void main(String[] args) throws Exception{
		int num = 998244353;

		// TODO Auto-generated method stub
 		BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
 		PrintWriter out = new PrintWriter(System.out);
 		int n = Integer.parseInt(bf.readLine());
 		int k = n%10;
 		if (k == 3)
 			out.println("bon");
 		else if (k == 0 || k == 1 || k == 6 || k == 8)
 			out.println("pon");
 		else
 			out.println("hon");
 		out.close();
 		
 		
 		
 	}
} Main
import java.util.*;
import java.io.*;
public class Main {

	public static void main(String[] args) throws Exception{
		int num = 998244353;

		// TODO Auto-generated method stub
 		BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
 		PrintWriter out = new PrintWriter(System.out);
 		int n = Integer.parseInt(bf.readLine());
 		int k = n%10;
 		if (k == 3)
 			out.println("bon");
 		else if (k == 0 || k == 1 || k == 6 || k == 8)
 			out.println("pon");
 		else
 			out.println("hon");
 		out.close();
 		
 		
 		
 	}
}
 	
 
//StringJoiner sj = new StringJoiner(" "); 
//sj.add(strings)
//sj.toString() gives string of those stuff w spaces or whatever that sequence is

 		
 		
 		
 		
	


