/* package codechef; // don't place package name! */

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



/* Name of the class has to be "Main" only if the class is public. */
public class Main
 
 
{
    static Scanner in = new Scanner(System.in);
   
    public static void solve()
    {
        int n=in.nextInt();
        
        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 static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		
		int t=1;
		//in.nextLine();
		
		while(t>0)
		{
		    
		    solve();
		    t--;
		}
		
		
	
	//	System.out.println(x);
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java public class Main
 
 
{
    static Scanner in = new Scanner(System.in);
   
    public static void solve()
    {
        int n=in.nextInt();
        
        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 static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		
		int t=1;
		//in.nextLine();
		
		while(t>0)
		{
		    
		    solve();
		    t--;
		}
		
		
	
	//	System.out.println(x);
	}
} Main static Scanner in = new Scanner(System.in); in new Scanner(System.in) public static void solve()
    {
        int n=in.nextInt();
        
        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");
        }
        
    } solve {
        int n=in.nextInt();
        
        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");
        }
        
    } int n=in.nextInt(); n in.nextInt() in.nextInt in 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("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("pon") System.out.println System.out System System.out "pon" {
            System.out.println("bon");
        } System.out.println("bon") System.out.println System.out System System.out "bon" public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		
		int t=1;
		//in.nextLine();
		
		while(t>0)
		{
		    
		    solve();
		    t--;
		}
		
		
	
	//	System.out.println(x);
	} main {
		// your code goes here
		
		int t=1;
		//in.nextLine();
		
		while(t>0)
		{
		    
		    solve();
		    t--;
		}
		
		
	
	//	System.out.println(x);
	} int t=1; t 1 while(t>0)
		{
		    
		    solve();
		    t--;
		} t>0 t 0 {
		    
		    solve();
		    t--;
		} solve() solve t-- t String[] args args public class Main
 
 
{
    static Scanner in = new Scanner(System.in);
   
    public static void solve()
    {
        int n=in.nextInt();
        
        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 static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		
		int t=1;
		//in.nextLine();
		
		while(t>0)
		{
		    
		    solve();
		    t--;
		}
		
		
	
	//	System.out.println(x);
	}
} public class Main
 
 
{
    static Scanner in = new Scanner(System.in);
   
    public static void solve()
    {
        int n=in.nextInt();
        
        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 static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		
		int t=1;
		//in.nextLine();
		
		while(t>0)
		{
		    
		    solve();
		    t--;
		}
		
		
	
	//	System.out.println(x);
	}
} Main
/* package codechef; // don't place package name! */

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



/* Name of the class has to be "Main" only if the class is public. */
public class Main
 
 
{
    static Scanner in = new Scanner(System.in);
   
    public static void solve()
    {
        int n=in.nextInt();
        
        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 static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		
		int t=1;
		//in.nextLine();
		
		while(t>0)
		{
		    
		    solve();
		    t--;
		}
		
		
	
	//	System.out.println(x);
	}
}
