import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        switch (N % 10) {
            case 3:
                System.out.println("bon");
                return;
            case 0:
            case 1:
            case 6:
            case 8:
                System.out.println("pon");
                return;
            default:
                System.out.println("hon");
                return;
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        switch (N % 10) {
            case 3:
                System.out.println("bon");
                return;
            case 0:
            case 1:
            case 6:
            case 8:
                System.out.println("pon");
                return;
            default:
                System.out.println("hon");
                return;
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        switch (N % 10) {
            case 3:
                System.out.println("bon");
                return;
            case 0:
            case 1:
            case 6:
            case 8:
                System.out.println("pon");
                return;
            default:
                System.out.println("hon");
                return;
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        switch (N % 10) {
            case 3:
                System.out.println("bon");
                return;
            case 0:
            case 1:
            case 6:
            case 8:
                System.out.println("pon");
                return;
            default:
                System.out.println("hon");
                return;
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc switch (N % 10) {
            case 3:
                System.out.println("bon");
                return;
            case 0:
            case 1:
            case 6:
            case 8:
                System.out.println("pon");
                return;
            default:
                System.out.println("hon");
                return;
        } N % 10 N 10 case 3: 3 case 3: System.out.println("bon") System.out.println System.out System System.out "bon" return; 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" return; default: default: System.out.println("hon") System.out.println System.out System System.out "hon" return; String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        switch (N % 10) {
            case 3:
                System.out.println("bon");
                return;
            case 0:
            case 1:
            case 6:
            case 8:
                System.out.println("pon");
                return;
            default:
                System.out.println("hon");
                return;
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        switch (N % 10) {
            case 3:
                System.out.println("bon");
                return;
            case 0:
            case 1:
            case 6:
            case 8:
                System.out.println("pon");
                return;
            default:
                System.out.println("hon");
                return;
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        switch (N % 10) {
            case 3:
                System.out.println("bon");
                return;
            case 0:
            case 1:
            case 6:
            case 8:
                System.out.println("pon");
                return;
            default:
                System.out.println("hon");
                return;
        }
    }
}