import java.util.*;

public class Main {

    public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        String n = sc.next();
        sc.close();

        // 主処理
        int num = Integer.parseInt(String.valueOf(n.charAt(n.length() - 1)));

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

        // 出力
        System.out.println(result);
    }
} import java.util.*; util.* java public class Main {

    public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        String n = sc.next();
        sc.close();

        // 主処理
        int num = Integer.parseInt(String.valueOf(n.charAt(n.length() - 1)));

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

        // 出力
        System.out.println(result);
    }
} Main public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        String n = sc.next();
        sc.close();

        // 主処理
        int num = Integer.parseInt(String.valueOf(n.charAt(n.length() - 1)));

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

        // 出力
        System.out.println(result);
    } main {

        // 入力
        Scanner sc = new Scanner(System.in);
        String n = sc.next();
        sc.close();

        // 主処理
        int num = Integer.parseInt(String.valueOf(n.charAt(n.length() - 1)));

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

        // 出力
        System.out.println(result);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String n = sc.next(); n sc.next() sc.next sc sc.close() sc.close sc int num = Integer.parseInt(String.valueOf(n.charAt(n.length() - 1))); num Integer.parseInt(String.valueOf(n.charAt(n.length() - 1))) Integer.parseInt Integer String.valueOf(n.charAt(n.length() - 1)) String.valueOf String n.charAt(n.length() - 1) n.charAt n n.length() - 1 n.length() n.length n 1 String result; result if (num == 3) {
            result = "bon";
        } else if (num == 0 || num == 1 || num == 6 || num == 8) {
            result = "pon";
        } else {
            result = "hon";
        } num == 3 num 3 {
            result = "bon";
        } result = "bon" result "bon" if (num == 0 || num == 1 || num == 6 || num == 8) {
            result = "pon";
        } else {
            result = "hon";
        } num == 0 || num == 1 || num == 6 || num == 8 num == 6 num == 0 || num == 1 || num == 6 || num == 8 num == 0 num 0 num == 1 num 1 num == 6 num 6 num == 8 num 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 n = sc.next();
        sc.close();

        // 主処理
        int num = Integer.parseInt(String.valueOf(n.charAt(n.length() - 1)));

        String result;
        if (num == 3) {
            result = "bon";
        } else if (num == 0 || num == 1 || num == 6 || num == 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 n = sc.next();
        sc.close();

        // 主処理
        int num = Integer.parseInt(String.valueOf(n.charAt(n.length() - 1)));

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

        // 出力
        System.out.println(result);
    }
} Main
import java.util.*;

public class Main {

    public static void main(String args[]) {

        // 入力
        Scanner sc = new Scanner(System.in);
        String n = sc.next();
        sc.close();

        // 主処理
        int num = Integer.parseInt(String.valueOf(n.charAt(n.length() - 1)));

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

        // 出力
        System.out.println(result);
    }
}
