import java.util.Scanner;

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

public class Main {
    public static void main(String[] args) {
        Scanner tan = new Scanner(System.in);
        int n,a=0;
        n = tan.nextInt();
        a=n%10;
        if(a==2 || a==4 || a==5 || a==7 || a==9)
            System.out.println("hon");
        else if(a==0 || a==1 || a==6 || a==8)
            System.out.println("pon");
        else if(a==3)
            System.out.println("bon");
    }
}
