import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        scan.close();

        int num2 = num % 10;

        if (num2 == 3) {
            System.out.println("bon");
        } else if (num2 == 0 || num2 == 1 || num2 == 6 || num2 == 8) {
            System.out.println("pon");
        } else {
            System.out.println("hon");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        scan.close();

        int num2 = num % 10;

        if (num2 == 3) {
            System.out.println("bon");
        } else if (num2 == 0 || num2 == 1 || num2 == 6 || num2 == 8) {
            System.out.println("pon");
        } else {
            System.out.println("hon");
        }
    }
} Main public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        scan.close();

        int num2 = num % 10;

        if (num2 == 3) {
            System.out.println("bon");
        } else if (num2 == 0 || num2 == 1 || num2 == 6 || num2 == 8) {
            System.out.println("pon");
        } else {
            System.out.println("hon");
        }
    } main {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        scan.close();

        int num2 = num % 10;

        if (num2 == 3) {
            System.out.println("bon");
        } else if (num2 == 0 || num2 == 1 || num2 == 6 || num2 == 8) {
            System.out.println("pon");
        } else {
            System.out.println("hon");
        }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int num = scan.nextInt(); num scan.nextInt() scan.nextInt scan scan.close() scan.close scan int num2 = num % 10; num2 num % 10 num 10 if (num2 == 3) {
            System.out.println("bon");
        } else if (num2 == 0 || num2 == 1 || num2 == 6 || num2 == 8) {
            System.out.println("pon");
        } else {
            System.out.println("hon");
        } num2 == 3 num2 3 {
            System.out.println("bon");
        } System.out.println("bon") System.out.println System.out System System.out "bon" if (num2 == 0 || num2 == 1 || num2 == 6 || num2 == 8) {
            System.out.println("pon");
        } else {
            System.out.println("hon");
        } num2 == 0 || num2 == 1 || num2 == 6 || num2 == 8 num2 == 6 num2 == 0 || num2 == 1 || num2 == 6 || num2 == 8 num2 == 0 num2 0 num2 == 1 num2 1 num2 == 6 num2 6 num2 == 8 num2 8 {
            System.out.println("pon");
        } System.out.println("pon") System.out.println System.out System System.out "pon" {
            System.out.println("hon");
        } System.out.println("hon") System.out.println System.out System System.out "hon" String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        scan.close();

        int num2 = num % 10;

        if (num2 == 3) {
            System.out.println("bon");
        } else if (num2 == 0 || num2 == 1 || num2 == 6 || num2 == 8) {
            System.out.println("pon");
        } else {
            System.out.println("hon");
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        scan.close();

        int num2 = num % 10;

        if (num2 == 3) {
            System.out.println("bon");
        } else if (num2 == 0 || num2 == 1 || num2 == 6 || num2 == 8) {
            System.out.println("pon");
        } else {
            System.out.println("hon");
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        scan.close();

        int num2 = num % 10;

        if (num2 == 3) {
            System.out.println("bon");
        } else if (num2 == 0 || num2 == 1 || num2 == 6 || num2 == 8) {
            System.out.println("pon");
        } else {
            System.out.println("hon");
        }
    }
}
