import java.util.Scanner;

public class Main{

    public static void main(String []args){
        Scanner sc = new Scanner(System.in);
        int a=0;
        int b=0;
        int c=0;
        int d=0;
        int score=0;
        a=sc.nextInt();
        String s=String.valueOf(a);
        if(s.endsWith("2")||s.endsWith("4")||s.endsWith("5")||s.endsWith("7")||s.endsWith("9")){
            System.out.print("hon");
        }



        if(s.endsWith("0")||s.endsWith("1")||s.endsWith("6")||s.endsWith("8")){
            System.out.print("pon");
        }
        if(s.endsWith("3")){
            System.out.print("bon");
        }





    }

}


 import java.util.Scanner; Scanner java.util public class Main{

    public static void main(String []args){
        Scanner sc = new Scanner(System.in);
        int a=0;
        int b=0;
        int c=0;
        int d=0;
        int score=0;
        a=sc.nextInt();
        String s=String.valueOf(a);
        if(s.endsWith("2")||s.endsWith("4")||s.endsWith("5")||s.endsWith("7")||s.endsWith("9")){
            System.out.print("hon");
        }



        if(s.endsWith("0")||s.endsWith("1")||s.endsWith("6")||s.endsWith("8")){
            System.out.print("pon");
        }
        if(s.endsWith("3")){
            System.out.print("bon");
        }





    }

} Main public static void main(String []args){
        Scanner sc = new Scanner(System.in);
        int a=0;
        int b=0;
        int c=0;
        int d=0;
        int score=0;
        a=sc.nextInt();
        String s=String.valueOf(a);
        if(s.endsWith("2")||s.endsWith("4")||s.endsWith("5")||s.endsWith("7")||s.endsWith("9")){
            System.out.print("hon");
        }



        if(s.endsWith("0")||s.endsWith("1")||s.endsWith("6")||s.endsWith("8")){
            System.out.print("pon");
        }
        if(s.endsWith("3")){
            System.out.print("bon");
        }





    } main {
        Scanner sc = new Scanner(System.in);
        int a=0;
        int b=0;
        int c=0;
        int d=0;
        int score=0;
        a=sc.nextInt();
        String s=String.valueOf(a);
        if(s.endsWith("2")||s.endsWith("4")||s.endsWith("5")||s.endsWith("7")||s.endsWith("9")){
            System.out.print("hon");
        }



        if(s.endsWith("0")||s.endsWith("1")||s.endsWith("6")||s.endsWith("8")){
            System.out.print("pon");
        }
        if(s.endsWith("3")){
            System.out.print("bon");
        }





    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a=0; a 0 int b=0; b 0 int c=0; c 0 int d=0; d 0 int score=0; score 0 a=sc.nextInt() a sc.nextInt() sc.nextInt sc String s=String.valueOf(a); s String.valueOf(a) String.valueOf String a if(s.endsWith("2")||s.endsWith("4")||s.endsWith("5")||s.endsWith("7")||s.endsWith("9")){
            System.out.print("hon");
        } s.endsWith("2")||s.endsWith("4")||s.endsWith("5")||s.endsWith("7")||s.endsWith("9") s.endsWith("7") s.endsWith("5") s.endsWith("2")||s.endsWith("4")||s.endsWith("5")||s.endsWith("7")||s.endsWith("9") s.endsWith("2") s.endsWith s "2" s.endsWith("4") s.endsWith s "4" s.endsWith("5") s.endsWith s "5" s.endsWith("7") s.endsWith s "7" s.endsWith("9") s.endsWith s "9" {
            System.out.print("hon");
        } System.out.print("hon") System.out.print System.out System System.out "hon" if(s.endsWith("0")||s.endsWith("1")||s.endsWith("6")||s.endsWith("8")){
            System.out.print("pon");
        } s.endsWith("0")||s.endsWith("1")||s.endsWith("6")||s.endsWith("8") s.endsWith("6") s.endsWith("0")||s.endsWith("1")||s.endsWith("6")||s.endsWith("8") s.endsWith("0") s.endsWith s "0" s.endsWith("1") s.endsWith s "1" s.endsWith("6") s.endsWith s "6" s.endsWith("8") s.endsWith s "8" {
            System.out.print("pon");
        } System.out.print("pon") System.out.print System.out System System.out "pon" if(s.endsWith("3")){
            System.out.print("bon");
        } s.endsWith("3") s.endsWith s "3" {
            System.out.print("bon");
        } System.out.print("bon") System.out.print 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 a=0;
        int b=0;
        int c=0;
        int d=0;
        int score=0;
        a=sc.nextInt();
        String s=String.valueOf(a);
        if(s.endsWith("2")||s.endsWith("4")||s.endsWith("5")||s.endsWith("7")||s.endsWith("9")){
            System.out.print("hon");
        }



        if(s.endsWith("0")||s.endsWith("1")||s.endsWith("6")||s.endsWith("8")){
            System.out.print("pon");
        }
        if(s.endsWith("3")){
            System.out.print("bon");
        }





    }

} public class Main{

    public static void main(String []args){
        Scanner sc = new Scanner(System.in);
        int a=0;
        int b=0;
        int c=0;
        int d=0;
        int score=0;
        a=sc.nextInt();
        String s=String.valueOf(a);
        if(s.endsWith("2")||s.endsWith("4")||s.endsWith("5")||s.endsWith("7")||s.endsWith("9")){
            System.out.print("hon");
        }



        if(s.endsWith("0")||s.endsWith("1")||s.endsWith("6")||s.endsWith("8")){
            System.out.print("pon");
        }
        if(s.endsWith("3")){
            System.out.print("bon");
        }





    }

} Main
import java.util.Scanner;

public class Main{

    public static void main(String []args){
        Scanner sc = new Scanner(System.in);
        int a=0;
        int b=0;
        int c=0;
        int d=0;
        int score=0;
        a=sc.nextInt();
        String s=String.valueOf(a);
        if(s.endsWith("2")||s.endsWith("4")||s.endsWith("5")||s.endsWith("7")||s.endsWith("9")){
            System.out.print("hon");
        }



        if(s.endsWith("0")||s.endsWith("1")||s.endsWith("6")||s.endsWith("8")){
            System.out.print("pon");
        }
        if(s.endsWith("3")){
            System.out.print("bon");
        }





    }

}



