import java.util.*;
import java.lang.*;
import java.io.*;
public class Main
{
	static void result(long n)
	{
		long rem = n%10;
		if(rem==3) {
			System.out.println("bon");
		}
		else if(rem==0 || rem==1 || rem==6 || rem==8)
		{
			System.out.println("pon");
		}
		else
		{
			System.out.println("hon");
		}
	}
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		long n = scan.nextLong();
		result(n);
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java public class Main
{
	static void result(long n)
	{
		long rem = n%10;
		if(rem==3) {
			System.out.println("bon");
		}
		else if(rem==0 || rem==1 || rem==6 || rem==8)
		{
			System.out.println("pon");
		}
		else
		{
			System.out.println("hon");
		}
	}
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		long n = scan.nextLong();
		result(n);
	}
} Main static void result(long n)
	{
		long rem = n%10;
		if(rem==3) {
			System.out.println("bon");
		}
		else if(rem==0 || rem==1 || rem==6 || rem==8)
		{
			System.out.println("pon");
		}
		else
		{
			System.out.println("hon");
		}
	} result {
		long rem = n%10;
		if(rem==3) {
			System.out.println("bon");
		}
		else if(rem==0 || rem==1 || rem==6 || rem==8)
		{
			System.out.println("pon");
		}
		else
		{
			System.out.println("hon");
		}
	} long rem = n%10; rem n%10 n 10 if(rem==3) {
			System.out.println("bon");
		}
		else if(rem==0 || rem==1 || rem==6 || rem==8)
		{
			System.out.println("pon");
		}
		else
		{
			System.out.println("hon");
		} rem==3 rem 3 {
			System.out.println("bon");
		} System.out.println("bon") System.out.println System.out System System.out "bon" if(rem==0 || rem==1 || rem==6 || rem==8)
		{
			System.out.println("pon");
		}
		else
		{
			System.out.println("hon");
		} rem==0 || rem==1 || rem==6 || rem==8 rem==6 rem==0 || rem==1 || rem==6 || rem==8 rem==0 rem 0 rem==1 rem 1 rem==6 rem 6 rem==8 rem 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" long n n public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		long n = scan.nextLong();
		result(n);
	} main {
		Scanner scan = new Scanner(System.in);
		long n = scan.nextLong();
		result(n);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) long n = scan.nextLong(); n scan.nextLong() scan.nextLong scan result(n) result n String[] args args public class Main
{
	static void result(long n)
	{
		long rem = n%10;
		if(rem==3) {
			System.out.println("bon");
		}
		else if(rem==0 || rem==1 || rem==6 || rem==8)
		{
			System.out.println("pon");
		}
		else
		{
			System.out.println("hon");
		}
	}
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		long n = scan.nextLong();
		result(n);
	}
} public class Main
{
	static void result(long n)
	{
		long rem = n%10;
		if(rem==3) {
			System.out.println("bon");
		}
		else if(rem==0 || rem==1 || rem==6 || rem==8)
		{
			System.out.println("pon");
		}
		else
		{
			System.out.println("hon");
		}
	}
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		long n = scan.nextLong();
		result(n);
	}
} Main
import java.util.*;
import java.lang.*;
import java.io.*;
public class Main
{
	static void result(long n)
	{
		long rem = n%10;
		if(rem==3) {
			System.out.println("bon");
		}
		else if(rem==0 || rem==1 || rem==6 || rem==8)
		{
			System.out.println("pon");
		}
		else
		{
			System.out.println("hon");
		}
	}
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		long n = scan.nextLong();
		result(n);
	}
}