import java.util.*;
import java.lang.*;
import java.io.*;
public class Main
{
	static String check(int num)
	{
		if(num==3) return "bon";
		else if(num==0 || num==1 || num==6 || num==8) return "pon";
		else return "hon";
	}
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int num = n%10;
		System.out.println(check(num));
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java public class Main
{
	static String check(int num)
	{
		if(num==3) return "bon";
		else if(num==0 || num==1 || num==6 || num==8) return "pon";
		else return "hon";
	}
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int num = n%10;
		System.out.println(check(num));
	}
} Main static String check(int num)
	{
		if(num==3) return "bon";
		else if(num==0 || num==1 || num==6 || num==8) return "pon";
		else return "hon";
	} check {
		if(num==3) return "bon";
		else if(num==0 || num==1 || num==6 || num==8) return "pon";
		else return "hon";
	} if(num==3) return "bon";
		else if(num==0 || num==1 || num==6 || num==8) return "pon";
		else return "hon"; num==3 num 3 return "bon"; "bon" if(num==0 || num==1 || num==6 || num==8) return "pon";
		else return "hon"; num==0 || num==1 || num==6 || num==8 num==6 num==0 || num==1 || num==6 || num==8 num==0 num 0 num==1 num 1 num==6 num 6 num==8 num 8 return "pon"; "pon" return "hon"; "hon" int num num public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int num = n%10;
		System.out.println(check(num));
	} main {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int num = n%10;
		System.out.println(check(num));
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int num = n%10; num n%10 n 10 System.out.println(check(num)) System.out.println System.out System System.out check(num) check num String[] args args public class Main
{
	static String check(int num)
	{
		if(num==3) return "bon";
		else if(num==0 || num==1 || num==6 || num==8) return "pon";
		else return "hon";
	}
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int num = n%10;
		System.out.println(check(num));
	}
} public class Main
{
	static String check(int num)
	{
		if(num==3) return "bon";
		else if(num==0 || num==1 || num==6 || num==8) return "pon";
		else return "hon";
	}
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int num = n%10;
		System.out.println(check(num));
	}
} Main
import java.util.*;
import java.lang.*;
import java.io.*;
public class Main
{
	static String check(int num)
	{
		if(num==3) return "bon";
		else if(num==0 || num==1 || num==6 || num==8) return "pon";
		else return "hon";
	}
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int num = n%10;
		System.out.println(check(num));
	}
}