import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long N = sc.nextLong();
        sc.close();

        long judge = N % 10;

        if (judge == 2 || judge == 4 || judge == 5 || judge == 7 || judge == 9) {
            System.out.println("hon");
        } else if (judge == 0 || judge == 1 || judge == 6 || judge == 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);
        long N = sc.nextLong();
        sc.close();

        long judge = N % 10;

        if (judge == 2 || judge == 4 || judge == 5 || judge == 7 || judge == 9) {
            System.out.println("hon");
        } else if (judge == 0 || judge == 1 || judge == 6 || judge == 8) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        }

    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long N = sc.nextLong();
        sc.close();

        long judge = N % 10;

        if (judge == 2 || judge == 4 || judge == 5 || judge == 7 || judge == 9) {
            System.out.println("hon");
        } else if (judge == 0 || judge == 1 || judge == 6 || judge == 8) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        }

    } main {
        Scanner sc = new Scanner(System.in);
        long N = sc.nextLong();
        sc.close();

        long judge = N % 10;

        if (judge == 2 || judge == 4 || judge == 5 || judge == 7 || judge == 9) {
            System.out.println("hon");
        } else if (judge == 0 || judge == 1 || judge == 6 || judge == 8) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        }

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long N = sc.nextLong(); N sc.nextLong() sc.nextLong sc sc.close() sc.close sc long judge = N % 10; judge N % 10 N 10 if (judge == 2 || judge == 4 || judge == 5 || judge == 7 || judge == 9) {
            System.out.println("hon");
        } else if (judge == 0 || judge == 1 || judge == 6 || judge == 8) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        } judge == 2 || judge == 4 || judge == 5 || judge == 7 || judge == 9 judge == 7 judge == 5 judge == 2 || judge == 4 || judge == 5 || judge == 7 || judge == 9 judge == 2 judge 2 judge == 4 judge 4 judge == 5 judge 5 judge == 7 judge 7 judge == 9 judge 9 {
            System.out.println("hon");
        } System.out.println("hon") System.out.println System.out System System.out "hon" if (judge == 0 || judge == 1 || judge == 6 || judge == 8) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        } judge == 0 || judge == 1 || judge == 6 || judge == 8 judge == 6 judge == 0 || judge == 1 || judge == 6 || judge == 8 judge == 0 judge 0 judge == 1 judge 1 judge == 6 judge 6 judge == 8 judge 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);
        long N = sc.nextLong();
        sc.close();

        long judge = N % 10;

        if (judge == 2 || judge == 4 || judge == 5 || judge == 7 || judge == 9) {
            System.out.println("hon");
        } else if (judge == 0 || judge == 1 || judge == 6 || judge == 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);
        long N = sc.nextLong();
        sc.close();

        long judge = N % 10;

        if (judge == 2 || judge == 4 || judge == 5 || judge == 7 || judge == 9) {
            System.out.println("hon");
        } else if (judge == 0 || judge == 1 || judge == 6 || judge == 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);
        long N = sc.nextLong();
        sc.close();

        long judge = N % 10;

        if (judge == 2 || judge == 4 || judge == 5 || judge == 7 || judge == 9) {
            System.out.println("hon");
        } else if (judge == 0 || judge == 1 || judge == 6 || judge == 8) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        }

    }
}
