
import java.io.*;
import java.util.*;
public class Main {
	public static void main(String[] args) throws Exception{
		// TODO Auto-generated method stub
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String s=br.readLine();
		int n=Integer.valueOf(s);
		int x=n%10;
		if(x==2 || x==4 || x==5 || x==7 || x==9)
			System.out.println("hon");
		else if(x==0 || x==1 || x==6 || x==8)
			System.out.println("pon");
		else
			System.out.println("bon");
	}

} import java.io.*; io.* java import java.util.*; util.* java public class Main {
	public static void main(String[] args) throws Exception{
		// TODO Auto-generated method stub
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String s=br.readLine();
		int n=Integer.valueOf(s);
		int x=n%10;
		if(x==2 || x==4 || x==5 || x==7 || x==9)
			System.out.println("hon");
		else if(x==0 || x==1 || x==6 || x==8)
			System.out.println("pon");
		else
			System.out.println("bon");
	}

} Main public static void main(String[] args) throws Exception{
		// TODO Auto-generated method stub
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String s=br.readLine();
		int n=Integer.valueOf(s);
		int x=n%10;
		if(x==2 || x==4 || x==5 || x==7 || x==9)
			System.out.println("hon");
		else if(x==0 || x==1 || x==6 || x==8)
			System.out.println("pon");
		else
			System.out.println("bon");
	} main {
		// TODO Auto-generated method stub
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String s=br.readLine();
		int n=Integer.valueOf(s);
		int x=n%10;
		if(x==2 || x==4 || x==5 || x==7 || x==9)
			System.out.println("hon");
		else if(x==0 || x==1 || x==6 || x==8)
			System.out.println("pon");
		else
			System.out.println("bon");
	} BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String s=br.readLine(); s br.readLine() br.readLine br int n=Integer.valueOf(s); n Integer.valueOf(s) Integer.valueOf Integer s int x=n%10; x n%10 n 10 if(x==2 || x==4 || x==5 || x==7 || x==9)
			System.out.println("hon");
		else if(x==0 || x==1 || x==6 || x==8)
			System.out.println("pon");
		else
			System.out.println("bon"); x==2 || x==4 || x==5 || x==7 || x==9 x==7 x==5 x==2 || x==4 || x==5 || x==7 || x==9 x==2 x 2 x==4 x 4 x==5 x 5 x==7 x 7 x==9 x 9 System.out.println("hon") System.out.println System.out System System.out "hon" if(x==0 || x==1 || x==6 || x==8)
			System.out.println("pon");
		else
			System.out.println("bon"); x==0 || x==1 || x==6 || x==8 x==6 x==0 || x==1 || x==6 || x==8 x==0 x 0 x==1 x 1 x==6 x 6 x==8 x 8 System.out.println("pon") System.out.println System.out System System.out "pon" System.out.println("bon") System.out.println System.out System System.out "bon" String[] args args public class Main {
	public static void main(String[] args) throws Exception{
		// TODO Auto-generated method stub
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String s=br.readLine();
		int n=Integer.valueOf(s);
		int x=n%10;
		if(x==2 || x==4 || x==5 || x==7 || x==9)
			System.out.println("hon");
		else if(x==0 || x==1 || x==6 || x==8)
			System.out.println("pon");
		else
			System.out.println("bon");
	}

} public class Main {
	public static void main(String[] args) throws Exception{
		// TODO Auto-generated method stub
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String s=br.readLine();
		int n=Integer.valueOf(s);
		int x=n%10;
		if(x==2 || x==4 || x==5 || x==7 || x==9)
			System.out.println("hon");
		else if(x==0 || x==1 || x==6 || x==8)
			System.out.println("pon");
		else
			System.out.println("bon");
	}

} Main

import java.io.*;
import java.util.*;
public class Main {
	public static void main(String[] args) throws Exception{
		// TODO Auto-generated method stub
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String s=br.readLine();
		int n=Integer.valueOf(s);
		int x=n%10;
		if(x==2 || x==4 || x==5 || x==7 || x==9)
			System.out.println("hon");
		else if(x==0 || x==1 || x==6 || x==8)
			System.out.println("pon");
		else
			System.out.println("bon");
	}

}
