import java.util.*;
 
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		N = N%10;
      
		if(N==2||N==4||N==5||N==7||N==9){
			System.out.println("hon");
        }else if(N==0||N==1||N==6||N==8){
			System.out.println("pon");
        }else{
			System.out.println("bon");
        }
    }
} import java.util.*; util.* java public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		N = N%10;
      
		if(N==2||N==4||N==5||N==7||N==9){
			System.out.println("hon");
        }else if(N==0||N==1||N==6||N==8){
			System.out.println("pon");
        }else{
			System.out.println("bon");
        }
    }
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		N = N%10;
      
		if(N==2||N==4||N==5||N==7||N==9){
			System.out.println("hon");
        }else if(N==0||N==1||N==6||N==8){
			System.out.println("pon");
        }else{
			System.out.println("bon");
        }
    } main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		N = N%10;
      
		if(N==2||N==4||N==5||N==7||N==9){
			System.out.println("hon");
        }else if(N==0||N==1||N==6||N==8){
			System.out.println("pon");
        }else{
			System.out.println("bon");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc N = N%10 N N%10 N 10 if(N==2||N==4||N==5||N==7||N==9){
			System.out.println("hon");
        }else if(N==0||N==1||N==6||N==8){
			System.out.println("pon");
        }else{
			System.out.println("bon");
        } N==2||N==4||N==5||N==7||N==9 N==7 N==5 N==2||N==4||N==5||N==7||N==9 N==2 N 2 N==4 N 4 N==5 N 5 N==7 N 7 N==9 N 9 {
			System.out.println("hon");
        } System.out.println("hon") System.out.println System.out System System.out "hon" if(N==0||N==1||N==6||N==8){
			System.out.println("pon");
        }else{
			System.out.println("bon");
        } N==0||N==1||N==6||N==8 N==6 N==0||N==1||N==6||N==8 N==0 N 0 N==1 N 1 N==6 N 6 N==8 N 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" String[] args args public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		N = N%10;
      
		if(N==2||N==4||N==5||N==7||N==9){
			System.out.println("hon");
        }else if(N==0||N==1||N==6||N==8){
			System.out.println("pon");
        }else{
			System.out.println("bon");
        }
    }
} public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		N = N%10;
      
		if(N==2||N==4||N==5||N==7||N==9){
			System.out.println("hon");
        }else if(N==0||N==1||N==6||N==8){
			System.out.println("pon");
        }else{
			System.out.println("bon");
        }
    }
} Main
import java.util.*;
 
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		N = N%10;
      
		if(N==2||N==4||N==5||N==7||N==9){
			System.out.println("hon");
        }else if(N==0||N==1||N==6||N==8){
			System.out.println("pon");
        }else{
			System.out.println("bon");
        }
    }
}
