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