import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        String str = sc.next();
        if(str.matches(".*2$") || str.matches(".*4$") || str.matches(".*5$") || str.matches(".*7$") || str.matches(".*9$")){
            System.out.println("hon");
        }
        else if(str.matches(".*0$") || str.matches(".*1$")  || str.matches(".*6$") || str.matches(".*8$")){
            System.out.println("pon");
        }
        else{
            System.out.println("bon");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        String str = sc.next();
        if(str.matches(".*2$") || str.matches(".*4$") || str.matches(".*5$") || str.matches(".*7$") || str.matches(".*9$")){
            System.out.println("hon");
        }
        else if(str.matches(".*0$") || str.matches(".*1$")  || str.matches(".*6$") || str.matches(".*8$")){
            System.out.println("pon");
        }
        else{
            System.out.println("bon");
        }
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        String str = sc.next();
        if(str.matches(".*2$") || str.matches(".*4$") || str.matches(".*5$") || str.matches(".*7$") || str.matches(".*9$")){
            System.out.println("hon");
        }
        else if(str.matches(".*0$") || str.matches(".*1$")  || str.matches(".*6$") || str.matches(".*8$")){
            System.out.println("pon");
        }
        else{
            System.out.println("bon");
        }
    } main {
        Scanner sc = new Scanner(System.in);

        String str = sc.next();
        if(str.matches(".*2$") || str.matches(".*4$") || str.matches(".*5$") || str.matches(".*7$") || str.matches(".*9$")){
            System.out.println("hon");
        }
        else if(str.matches(".*0$") || str.matches(".*1$")  || str.matches(".*6$") || str.matches(".*8$")){
            System.out.println("pon");
        }
        else{
            System.out.println("bon");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.next(); str sc.next() sc.next sc if(str.matches(".*2$") || str.matches(".*4$") || str.matches(".*5$") || str.matches(".*7$") || str.matches(".*9$")){
            System.out.println("hon");
        }
        else if(str.matches(".*0$") || str.matches(".*1$")  || str.matches(".*6$") || str.matches(".*8$")){
            System.out.println("pon");
        }
        else{
            System.out.println("bon");
        } str.matches(".*2$") || str.matches(".*4$") || str.matches(".*5$") || str.matches(".*7$") || str.matches(".*9$") str.matches(".*7$") str.matches(".*5$") str.matches(".*2$") || str.matches(".*4$") || str.matches(".*5$") || str.matches(".*7$") || str.matches(".*9$") str.matches(".*2$") str.matches str ".*2$" str.matches(".*4$") str.matches str ".*4$" str.matches(".*5$") str.matches str ".*5$" str.matches(".*7$") str.matches str ".*7$" str.matches(".*9$") str.matches str ".*9$" {
            System.out.println("hon");
        } System.out.println("hon") System.out.println System.out System System.out "hon" if(str.matches(".*0$") || str.matches(".*1$")  || str.matches(".*6$") || str.matches(".*8$")){
            System.out.println("pon");
        }
        else{
            System.out.println("bon");
        } str.matches(".*0$") || str.matches(".*1$")  || str.matches(".*6$") || str.matches(".*8$") str.matches(".*6$") str.matches(".*0$") || str.matches(".*1$")  || str.matches(".*6$") || str.matches(".*8$") str.matches(".*0$") str.matches str ".*0$" str.matches(".*1$") str.matches str ".*1$" str.matches(".*6$") str.matches str ".*6$" str.matches(".*8$") str.matches str ".*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);

        String str = sc.next();
        if(str.matches(".*2$") || str.matches(".*4$") || str.matches(".*5$") || str.matches(".*7$") || str.matches(".*9$")){
            System.out.println("hon");
        }
        else if(str.matches(".*0$") || str.matches(".*1$")  || str.matches(".*6$") || str.matches(".*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);

        String str = sc.next();
        if(str.matches(".*2$") || str.matches(".*4$") || str.matches(".*5$") || str.matches(".*7$") || str.matches(".*9$")){
            System.out.println("hon");
        }
        else if(str.matches(".*0$") || str.matches(".*1$")  || str.matches(".*6$") || str.matches(".*8$")){
            System.out.println("pon");
        }
        else{
            System.out.println("bon");
        }
    }
} Main
import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        String str = sc.next();
        if(str.matches(".*2$") || str.matches(".*4$") || str.matches(".*5$") || str.matches(".*7$") || str.matches(".*9$")){
            System.out.println("hon");
        }
        else if(str.matches(".*0$") || str.matches(".*1$")  || str.matches(".*6$") || str.matches(".*8$")){
            System.out.println("pon");
        }
        else{
            System.out.println("bon");
        }
    }
}