import java.util.*;


public class Main {
     public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String n = sc.next();
        sc.close();
        String[] arr =  n.split("");
        int num = Integer.parseInt(arr[arr.length - 1]);
//        System.out.println(num);
        switch(num){
            case 3:
                System.out.println("bon");
                break;
            case 0:
            case 1:
            case 6:
            case 8:
                System.out.println("pon");
                break;
            default:
                System.out.println("hon");
                break;
        }
    }
} 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();
        String[] arr =  n.split("");
        int num = Integer.parseInt(arr[arr.length - 1]);
//        System.out.println(num);
        switch(num){
            case 3:
                System.out.println("bon");
                break;
            case 0:
            case 1:
            case 6:
            case 8:
                System.out.println("pon");
                break;
            default:
                System.out.println("hon");
                break;
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String n = sc.next();
        sc.close();
        String[] arr =  n.split("");
        int num = Integer.parseInt(arr[arr.length - 1]);
//        System.out.println(num);
        switch(num){
            case 3:
                System.out.println("bon");
                break;
            case 0:
            case 1:
            case 6:
            case 8:
                System.out.println("pon");
                break;
            default:
                System.out.println("hon");
                break;
        }
    } main {
        Scanner sc = new Scanner(System.in);
        String n = sc.next();
        sc.close();
        String[] arr =  n.split("");
        int num = Integer.parseInt(arr[arr.length - 1]);
//        System.out.println(num);
        switch(num){
            case 3:
                System.out.println("bon");
                break;
            case 0:
            case 1:
            case 6:
            case 8:
                System.out.println("pon");
                break;
            default:
                System.out.println("hon");
                break;
        }
    } 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 String[] arr =  n.split(""); arr n.split("") n.split n "" int num = Integer.parseInt(arr[arr.length - 1]); num Integer.parseInt(arr[arr.length - 1]) Integer.parseInt Integer arr[arr.length - 1] arr arr.length - 1 arr.length arr arr.length 1 switch(num){
            case 3:
                System.out.println("bon");
                break;
            case 0:
            case 1:
            case 6:
            case 8:
                System.out.println("pon");
                break;
            default:
                System.out.println("hon");
                break;
        } num case 3: 3 case 3: System.out.println("bon") System.out.println System.out System System.out "bon" break; 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; default: default: System.out.println("hon") System.out.println System.out System System.out "hon" break; String[] args args public class Main {
     public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String n = sc.next();
        sc.close();
        String[] arr =  n.split("");
        int num = Integer.parseInt(arr[arr.length - 1]);
//        System.out.println(num);
        switch(num){
            case 3:
                System.out.println("bon");
                break;
            case 0:
            case 1:
            case 6:
            case 8:
                System.out.println("pon");
                break;
            default:
                System.out.println("hon");
                break;
        }
    }
} public class Main {
     public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String n = sc.next();
        sc.close();
        String[] arr =  n.split("");
        int num = Integer.parseInt(arr[arr.length - 1]);
//        System.out.println(num);
        switch(num){
            case 3:
                System.out.println("bon");
                break;
            case 0:
            case 1:
            case 6:
            case 8:
                System.out.println("pon");
                break;
            default:
                System.out.println("hon");
                break;
        }
    }
} 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();
        String[] arr =  n.split("");
        int num = Integer.parseInt(arr[arr.length - 1]);
//        System.out.println(num);
        switch(num){
            case 3:
                System.out.println("bon");
                break;
            case 0:
            case 1:
            case 6:
            case 8:
                System.out.println("pon");
                break;
            default:
                System.out.println("hon");
                break;
        }
    }
}