import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class Main {

    public static void main(String[] args) throws Exception {

        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader reader = new BufferedReader(is);

        ArrayList<String> mylist = new ArrayList<>();

        // 標準入力からの値を変数strinputに代入
        String strinput = reader.readLine();

        while (strinput != null) {
            mylist.add(strinput);
            strinput = reader.readLine();
        }

        String arr01[] = mylist.get(0).split(" ");

        String n = arr01[0];

        switch (n.substring(n.length() - 1)) {
        case "0":
        case "1":
        case "6":
        case "8":
            System.out.println("pon");
            break;
        case "2":
        case "4":
        case "5":
        case "7":
        case "9":

            System.out.println("hon");
            break;

        default:

            System.out.println("bon");
            break;
        }
    }

} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayList; ArrayList java.util public class Main {

    public static void main(String[] args) throws Exception {

        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader reader = new BufferedReader(is);

        ArrayList<String> mylist = new ArrayList<>();

        // 標準入力からの値を変数strinputに代入
        String strinput = reader.readLine();

        while (strinput != null) {
            mylist.add(strinput);
            strinput = reader.readLine();
        }

        String arr01[] = mylist.get(0).split(" ");

        String n = arr01[0];

        switch (n.substring(n.length() - 1)) {
        case "0":
        case "1":
        case "6":
        case "8":
            System.out.println("pon");
            break;
        case "2":
        case "4":
        case "5":
        case "7":
        case "9":

            System.out.println("hon");
            break;

        default:

            System.out.println("bon");
            break;
        }
    }

} Main public static void main(String[] args) throws Exception {

        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader reader = new BufferedReader(is);

        ArrayList<String> mylist = new ArrayList<>();

        // 標準入力からの値を変数strinputに代入
        String strinput = reader.readLine();

        while (strinput != null) {
            mylist.add(strinput);
            strinput = reader.readLine();
        }

        String arr01[] = mylist.get(0).split(" ");

        String n = arr01[0];

        switch (n.substring(n.length() - 1)) {
        case "0":
        case "1":
        case "6":
        case "8":
            System.out.println("pon");
            break;
        case "2":
        case "4":
        case "5":
        case "7":
        case "9":

            System.out.println("hon");
            break;

        default:

            System.out.println("bon");
            break;
        }
    } main {

        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader reader = new BufferedReader(is);

        ArrayList<String> mylist = new ArrayList<>();

        // 標準入力からの値を変数strinputに代入
        String strinput = reader.readLine();

        while (strinput != null) {
            mylist.add(strinput);
            strinput = reader.readLine();
        }

        String arr01[] = mylist.get(0).split(" ");

        String n = arr01[0];

        switch (n.substring(n.length() - 1)) {
        case "0":
        case "1":
        case "6":
        case "8":
            System.out.println("pon");
            break;
        case "2":
        case "4":
        case "5":
        case "7":
        case "9":

            System.out.println("hon");
            break;

        default:

            System.out.println("bon");
            break;
        }
    } InputStreamReader is = new InputStreamReader(System.in); is new InputStreamReader(System.in) BufferedReader reader = new BufferedReader(is); reader new BufferedReader(is) ArrayList<String> mylist = new ArrayList<>(); mylist new ArrayList<>() String strinput = reader.readLine(); strinput reader.readLine() reader.readLine reader while (strinput != null) {
            mylist.add(strinput);
            strinput = reader.readLine();
        } strinput != null strinput null {
            mylist.add(strinput);
            strinput = reader.readLine();
        } mylist.add(strinput) mylist.add mylist strinput strinput = reader.readLine() strinput reader.readLine() reader.readLine reader String arr01[] = mylist.get(0).split(" "); arr01 mylist.get(0).split(" ") mylist.get(0).split mylist.get(0) mylist.get mylist 0 " " String n = arr01[0]; n arr01[0] arr01 0 switch (n.substring(n.length() - 1)) {
        case "0":
        case "1":
        case "6":
        case "8":
            System.out.println("pon");
            break;
        case "2":
        case "4":
        case "5":
        case "7":
        case "9":

            System.out.println("hon");
            break;

        default:

            System.out.println("bon");
            break;
        } n.substring(n.length() - 1) n.substring n n.length() - 1 n.length() n.length n 1 case "0": "0" case "0": case "1": "1" case "1": case "6": "6" case "6": case "8": "8" case "8": System.out.println("pon") System.out.println System.out System System.out "pon" break; case "2": "2" case "2": case "4": "4" case "4": case "5": "5" case "5": case "7": "7" case "7": case "9": "9" case "9": System.out.println("hon") System.out.println System.out System System.out "hon" break; default: default: System.out.println("bon") System.out.println System.out System System.out "bon" break; String[] args args public class Main {

    public static void main(String[] args) throws Exception {

        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader reader = new BufferedReader(is);

        ArrayList<String> mylist = new ArrayList<>();

        // 標準入力からの値を変数strinputに代入
        String strinput = reader.readLine();

        while (strinput != null) {
            mylist.add(strinput);
            strinput = reader.readLine();
        }

        String arr01[] = mylist.get(0).split(" ");

        String n = arr01[0];

        switch (n.substring(n.length() - 1)) {
        case "0":
        case "1":
        case "6":
        case "8":
            System.out.println("pon");
            break;
        case "2":
        case "4":
        case "5":
        case "7":
        case "9":

            System.out.println("hon");
            break;

        default:

            System.out.println("bon");
            break;
        }
    }

} public class Main {

    public static void main(String[] args) throws Exception {

        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader reader = new BufferedReader(is);

        ArrayList<String> mylist = new ArrayList<>();

        // 標準入力からの値を変数strinputに代入
        String strinput = reader.readLine();

        while (strinput != null) {
            mylist.add(strinput);
            strinput = reader.readLine();
        }

        String arr01[] = mylist.get(0).split(" ");

        String n = arr01[0];

        switch (n.substring(n.length() - 1)) {
        case "0":
        case "1":
        case "6":
        case "8":
            System.out.println("pon");
            break;
        case "2":
        case "4":
        case "5":
        case "7":
        case "9":

            System.out.println("hon");
            break;

        default:

            System.out.println("bon");
            break;
        }
    }

} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class Main {

    public static void main(String[] args) throws Exception {

        InputStreamReader is = new InputStreamReader(System.in);
        BufferedReader reader = new BufferedReader(is);

        ArrayList<String> mylist = new ArrayList<>();

        // 標準入力からの値を変数strinputに代入
        String strinput = reader.readLine();

        while (strinput != null) {
            mylist.add(strinput);
            strinput = reader.readLine();
        }

        String arr01[] = mylist.get(0).split(" ");

        String n = arr01[0];

        switch (n.substring(n.length() - 1)) {
        case "0":
        case "1":
        case "6":
        case "8":
            System.out.println("pon");
            break;
        case "2":
        case "4":
        case "5":
        case "7":
        case "9":

            System.out.println("hon");
            break;

        default:

            System.out.println("bon");
            break;
        }
    }

}
