import java.util.Scanner;

public class Main {

    private static final Scanner SCANNER = new Scanner(System.in);

    static int readOneInt() {
        String line = SCANNER.nextLine();
        return Integer.parseInt(line);
    }

    public static void main(String[] args) {

//        int tc = Integer.parseInt(SCANNER.nextLine());
        int tc = 1;
        for (int i = 0; i < tc; ++i) {
            test(readOneInt());
        }
    }

    private static void test(int n) {
        int d = n % 10;
        if (d == 2 || d == 4 || d == 5 || d == 7 || d == 9) {
            System.out.println("hon");
        } else if (d == 0 || d == 1 || d == 6 || d == 8) {
            System.out.println("pon");
        } else if (d == 3) {
            System.out.println("bon");
        }
    }
}
 import java.util.Scanner; Scanner java.util public class Main {

    private static final Scanner SCANNER = new Scanner(System.in);

    static int readOneInt() {
        String line = SCANNER.nextLine();
        return Integer.parseInt(line);
    }

    public static void main(String[] args) {

//        int tc = Integer.parseInt(SCANNER.nextLine());
        int tc = 1;
        for (int i = 0; i < tc; ++i) {
            test(readOneInt());
        }
    }

    private static void test(int n) {
        int d = n % 10;
        if (d == 2 || d == 4 || d == 5 || d == 7 || d == 9) {
            System.out.println("hon");
        } else if (d == 0 || d == 1 || d == 6 || d == 8) {
            System.out.println("pon");
        } else if (d == 3) {
            System.out.println("bon");
        }
    }
} Main private static final Scanner SCANNER = new Scanner(System.in); SCANNER new Scanner(System.in) static int readOneInt() {
        String line = SCANNER.nextLine();
        return Integer.parseInt(line);
    } readOneInt {
        String line = SCANNER.nextLine();
        return Integer.parseInt(line);
    } String line = SCANNER.nextLine(); line SCANNER.nextLine() SCANNER.nextLine SCANNER return Integer.parseInt(line); Integer.parseInt(line) Integer.parseInt Integer line public static void main(String[] args) {

//        int tc = Integer.parseInt(SCANNER.nextLine());
        int tc = 1;
        for (int i = 0; i < tc; ++i) {
            test(readOneInt());
        }
    } main {

//        int tc = Integer.parseInt(SCANNER.nextLine());
        int tc = 1;
        for (int i = 0; i < tc; ++i) {
            test(readOneInt());
        }
    } int tc = 1; tc 1 for (int i = 0; i < tc; ++i) {
            test(readOneInt());
        } int i = 0; int i = 0; i 0 i < tc i tc ++i ++i i {
            test(readOneInt());
        } {
            test(readOneInt());
        } test(readOneInt()) test readOneInt() readOneInt String[] args args private static void test(int n) {
        int d = n % 10;
        if (d == 2 || d == 4 || d == 5 || d == 7 || d == 9) {
            System.out.println("hon");
        } else if (d == 0 || d == 1 || d == 6 || d == 8) {
            System.out.println("pon");
        } else if (d == 3) {
            System.out.println("bon");
        }
    } test {
        int d = n % 10;
        if (d == 2 || d == 4 || d == 5 || d == 7 || d == 9) {
            System.out.println("hon");
        } else if (d == 0 || d == 1 || d == 6 || d == 8) {
            System.out.println("pon");
        } else if (d == 3) {
            System.out.println("bon");
        }
    } int d = n % 10; d n % 10 n 10 if (d == 2 || d == 4 || d == 5 || d == 7 || d == 9) {
            System.out.println("hon");
        } else if (d == 0 || d == 1 || d == 6 || d == 8) {
            System.out.println("pon");
        } else if (d == 3) {
            System.out.println("bon");
        } d == 2 || d == 4 || d == 5 || d == 7 || d == 9 d == 7 d == 5 d == 2 || d == 4 || d == 5 || d == 7 || d == 9 d == 2 d 2 d == 4 d 4 d == 5 d 5 d == 7 d 7 d == 9 d 9 {
            System.out.println("hon");
        } System.out.println("hon") System.out.println System.out System System.out "hon" if (d == 0 || d == 1 || d == 6 || d == 8) {
            System.out.println("pon");
        } else if (d == 3) {
            System.out.println("bon");
        } d == 0 || d == 1 || d == 6 || d == 8 d == 6 d == 0 || d == 1 || d == 6 || d == 8 d == 0 d 0 d == 1 d 1 d == 6 d 6 d == 8 d 8 {
            System.out.println("pon");
        } System.out.println("pon") System.out.println System.out System System.out "pon" if (d == 3) {
            System.out.println("bon");
        } d == 3 d 3 {
            System.out.println("bon");
        } System.out.println("bon") System.out.println System.out System System.out "bon" int n n public class Main {

    private static final Scanner SCANNER = new Scanner(System.in);

    static int readOneInt() {
        String line = SCANNER.nextLine();
        return Integer.parseInt(line);
    }

    public static void main(String[] args) {

//        int tc = Integer.parseInt(SCANNER.nextLine());
        int tc = 1;
        for (int i = 0; i < tc; ++i) {
            test(readOneInt());
        }
    }

    private static void test(int n) {
        int d = n % 10;
        if (d == 2 || d == 4 || d == 5 || d == 7 || d == 9) {
            System.out.println("hon");
        } else if (d == 0 || d == 1 || d == 6 || d == 8) {
            System.out.println("pon");
        } else if (d == 3) {
            System.out.println("bon");
        }
    }
} public class Main {

    private static final Scanner SCANNER = new Scanner(System.in);

    static int readOneInt() {
        String line = SCANNER.nextLine();
        return Integer.parseInt(line);
    }

    public static void main(String[] args) {

//        int tc = Integer.parseInt(SCANNER.nextLine());
        int tc = 1;
        for (int i = 0; i < tc; ++i) {
            test(readOneInt());
        }
    }

    private static void test(int n) {
        int d = n % 10;
        if (d == 2 || d == 4 || d == 5 || d == 7 || d == 9) {
            System.out.println("hon");
        } else if (d == 0 || d == 1 || d == 6 || d == 8) {
            System.out.println("pon");
        } else if (d == 3) {
            System.out.println("bon");
        }
    }
} Main
import java.util.Scanner;

public class Main {

    private static final Scanner SCANNER = new Scanner(System.in);

    static int readOneInt() {
        String line = SCANNER.nextLine();
        return Integer.parseInt(line);
    }

    public static void main(String[] args) {

//        int tc = Integer.parseInt(SCANNER.nextLine());
        int tc = 1;
        for (int i = 0; i < tc; ++i) {
            test(readOneInt());
        }
    }

    private static void test(int n) {
        int d = n % 10;
        if (d == 2 || d == 4 || d == 5 || d == 7 || d == 9) {
            System.out.println("hon");
        } else if (d == 0 || d == 1 || d == 6 || d == 8) {
            System.out.println("pon");
        } else if (d == 3) {
            System.out.println("bon");
        }
    }
}

