import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] list = sc.next().split("");

        String x = list[list.length - 1];
        if (x.equals("3"))  System.out.println("bon");
        else if (x.equals("0") || x.equals("1") || x.equals("6") || x.equals("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) {
        Scanner sc = new Scanner(System.in);
        String[] list = sc.next().split("");

        String x = list[list.length - 1];
        if (x.equals("3"))  System.out.println("bon");
        else if (x.equals("0") || x.equals("1") || x.equals("6") || x.equals("8")) System.out.println("pon");
        else System.out.println("hon");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] list = sc.next().split("");

        String x = list[list.length - 1];
        if (x.equals("3"))  System.out.println("bon");
        else if (x.equals("0") || x.equals("1") || x.equals("6") || x.equals("8")) System.out.println("pon");
        else System.out.println("hon");
    } main {
        Scanner sc = new Scanner(System.in);
        String[] list = sc.next().split("");

        String x = list[list.length - 1];
        if (x.equals("3"))  System.out.println("bon");
        else if (x.equals("0") || x.equals("1") || x.equals("6") || x.equals("8")) System.out.println("pon");
        else System.out.println("hon");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] list = sc.next().split(""); list sc.next().split("") sc.next().split sc.next() sc.next sc "" String x = list[list.length - 1]; x list[list.length - 1] list list.length - 1 list.length list list.length 1 if (x.equals("3"))  System.out.println("bon");
        else if (x.equals("0") || x.equals("1") || x.equals("6") || x.equals("8")) System.out.println("pon");
        else System.out.println("hon"); x.equals("3") x.equals x "3" System.out.println("bon") System.out.println System.out System System.out "bon" if (x.equals("0") || x.equals("1") || x.equals("6") || x.equals("8")) System.out.println("pon");
        else System.out.println("hon"); x.equals("0") || x.equals("1") || x.equals("6") || x.equals("8") x.equals("6") x.equals("0") || x.equals("1") || x.equals("6") || x.equals("8") x.equals("0") x.equals x "0" x.equals("1") x.equals x "1" x.equals("6") x.equals x "6" x.equals("8") x.equals x "8" System.out.println("pon") System.out.println System.out System System.out "pon" 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) {
        Scanner sc = new Scanner(System.in);
        String[] list = sc.next().split("");

        String x = list[list.length - 1];
        if (x.equals("3"))  System.out.println("bon");
        else if (x.equals("0") || x.equals("1") || x.equals("6") || x.equals("8")) System.out.println("pon");
        else System.out.println("hon");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] list = sc.next().split("");

        String x = list[list.length - 1];
        if (x.equals("3"))  System.out.println("bon");
        else if (x.equals("0") || x.equals("1") || x.equals("6") || x.equals("8")) System.out.println("pon");
        else System.out.println("hon");
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] list = sc.next().split("");

        String x = list[list.length - 1];
        if (x.equals("3"))  System.out.println("bon");
        else if (x.equals("0") || x.equals("1") || x.equals("6") || x.equals("8")) System.out.println("pon");
        else System.out.println("hon");
    }
}