import java.util.Scanner;

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

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

        scan.close();
    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();

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

        scan.close();
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();

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

        scan.close();
    } main {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();

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

        scan.close();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan if(n % 10 == 3) {
            System.out.println("bon");
        } else if(n % 10 == 0 || n % 10 == 1 || n % 10 == 6|| n % 10 == 8) {
            System.out.println("pon");
        }
        else {
            System.out.println("hon");
        } n % 10 == 3 n % 10 n 10 3 {
            System.out.println("bon");
        } System.out.println("bon") System.out.println System.out System System.out "bon" if(n % 10 == 0 || n % 10 == 1 || n % 10 == 6|| n % 10 == 8) {
            System.out.println("pon");
        }
        else {
            System.out.println("hon");
        } n % 10 == 0 || n % 10 == 1 || n % 10 == 6|| n % 10 == 8 n % 10 == 6 n % 10 == 0 || n % 10 == 1 || n % 10 == 6|| n % 10 == 8 n % 10 == 0 n % 10 n 10 0 n % 10 == 1 n % 10 n 10 1 n % 10 == 6 n % 10 n 10 6 n % 10 == 8 n % 10 n 10 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" scan.close() scan.close scan String[] args args
import java.util.Scanner;

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

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

        scan.close();
    }
}