import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String a = sc.next();

        int i = a.length() - 1;

        String target = a.substring(i);

        String result;
        if (target.equals("3")) {
            result = "bon";
        } else if (target.equals("0") || target.equals("1") || target.equals("6") || target.equals("8")) {
            result = "pon";
        } else {
            result = "hon";
        }

        System.out.println(result);

    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String a = sc.next();

        int i = a.length() - 1;

        String target = a.substring(i);

        String result;
        if (target.equals("3")) {
            result = "bon";
        } else if (target.equals("0") || target.equals("1") || target.equals("6") || target.equals("8")) {
            result = "pon";
        } else {
            result = "hon";
        }

        System.out.println(result);

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

        Scanner sc = new Scanner(System.in);
        String a = sc.next();

        int i = a.length() - 1;

        String target = a.substring(i);

        String result;
        if (target.equals("3")) {
            result = "bon";
        } else if (target.equals("0") || target.equals("1") || target.equals("6") || target.equals("8")) {
            result = "pon";
        } else {
            result = "hon";
        }

        System.out.println(result);

    } main {

        Scanner sc = new Scanner(System.in);
        String a = sc.next();

        int i = a.length() - 1;

        String target = a.substring(i);

        String result;
        if (target.equals("3")) {
            result = "bon";
        } else if (target.equals("0") || target.equals("1") || target.equals("6") || target.equals("8")) {
            result = "pon";
        } else {
            result = "hon";
        }

        System.out.println(result);

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String a = sc.next(); a sc.next() sc.next sc int i = a.length() - 1; i a.length() - 1 a.length() a.length a 1 String target = a.substring(i); target a.substring(i) a.substring a i String result; result if (target.equals("3")) {
            result = "bon";
        } else if (target.equals("0") || target.equals("1") || target.equals("6") || target.equals("8")) {
            result = "pon";
        } else {
            result = "hon";
        } target.equals("3") target.equals target "3" {
            result = "bon";
        } result = "bon" result "bon" if (target.equals("0") || target.equals("1") || target.equals("6") || target.equals("8")) {
            result = "pon";
        } else {
            result = "hon";
        } target.equals("0") || target.equals("1") || target.equals("6") || target.equals("8") target.equals("6") target.equals("0") || target.equals("1") || target.equals("6") || target.equals("8") target.equals("0") target.equals target "0" target.equals("1") target.equals target "1" target.equals("6") target.equals target "6" target.equals("8") target.equals target "8" {
            result = "pon";
        } result = "pon" result "pon" {
            result = "hon";
        } result = "hon" result "hon" System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String a = sc.next();

        int i = a.length() - 1;

        String target = a.substring(i);

        String result;
        if (target.equals("3")) {
            result = "bon";
        } else if (target.equals("0") || target.equals("1") || target.equals("6") || target.equals("8")) {
            result = "pon";
        } else {
            result = "hon";
        }

        System.out.println(result);

    }
} public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String a = sc.next();

        int i = a.length() - 1;

        String target = a.substring(i);

        String result;
        if (target.equals("3")) {
            result = "bon";
        } else if (target.equals("0") || target.equals("1") || target.equals("6") || target.equals("8")) {
            result = "pon";
        } else {
            result = "hon";
        }

        System.out.println(result);

    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String a = sc.next();

        int i = a.length() - 1;

        String target = a.substring(i);

        String result;
        if (target.equals("3")) {
            result = "bon";
        } else if (target.equals("0") || target.equals("1") || target.equals("6") || target.equals("8")) {
            result = "pon";
        } else {
            result = "hon";
        }

        System.out.println(result);

    }
}
