import java.util.*;

class Main {
    public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int digit_1 = N % 10;
        String read = "hon";
        Integer[] pon = {0, 1, 6, 8};
        List<Integer> ponNew = Arrays.asList(pon);

        if (digit_1 == 3) {
            read = "bon";
        } else if (ponNew.contains(digit_1)) {
            read = "pon";
        }
        System.out.println(read);

    }
} import java.util.*; util.* java class Main {
    public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int digit_1 = N % 10;
        String read = "hon";
        Integer[] pon = {0, 1, 6, 8};
        List<Integer> ponNew = Arrays.asList(pon);

        if (digit_1 == 3) {
            read = "bon";
        } else if (ponNew.contains(digit_1)) {
            read = "pon";
        }
        System.out.println(read);

    }
} Main public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int digit_1 = N % 10;
        String read = "hon";
        Integer[] pon = {0, 1, 6, 8};
        List<Integer> ponNew = Arrays.asList(pon);

        if (digit_1 == 3) {
            read = "bon";
        } else if (ponNew.contains(digit_1)) {
            read = "pon";
        }
        System.out.println(read);

    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int digit_1 = N % 10;
        String read = "hon";
        Integer[] pon = {0, 1, 6, 8};
        List<Integer> ponNew = Arrays.asList(pon);

        if (digit_1 == 3) {
            read = "bon";
        } else if (ponNew.contains(digit_1)) {
            read = "pon";
        }
        System.out.println(read);

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int digit_1 = N % 10; digit_1 N % 10 N 10 String read = "hon"; read "hon" Integer[] pon = {0, 1, 6, 8}; pon {0, 1, 6, 8} 0 1 6 8 List<Integer> ponNew = Arrays.asList(pon); ponNew Arrays.asList(pon) Arrays.asList Arrays pon if (digit_1 == 3) {
            read = "bon";
        } else if (ponNew.contains(digit_1)) {
            read = "pon";
        } digit_1 == 3 digit_1 3 {
            read = "bon";
        } read = "bon" read "bon" if (ponNew.contains(digit_1)) {
            read = "pon";
        } ponNew.contains(digit_1) ponNew.contains ponNew digit_1 {
            read = "pon";
        } read = "pon" read "pon" System.out.println(read) System.out.println System.out System System.out read String[] args args
import java.util.*;

class Main {
    public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int digit_1 = N % 10;
        String read = "hon";
        Integer[] pon = {0, 1, 6, 8};
        List<Integer> ponNew = Arrays.asList(pon);

        if (digit_1 == 3) {
            read = "bon";
        } else if (ponNew.contains(digit_1)) {
            read = "pon";
        }
        System.out.println(read);

    }
}