import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            int N = sc.nextInt() % 10;
            System.out.println((N == 0 || N == 1 || N == 6 || N == 8) ? "pon" : (N == 3) ? "bon" : "hon");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            int N = sc.nextInt() % 10;
            System.out.println((N == 0 || N == 1 || N == 6 || N == 8) ? "pon" : (N == 3) ? "bon" : "hon");
        }
    }
} Main public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            int N = sc.nextInt() % 10;
            System.out.println((N == 0 || N == 1 || N == 6 || N == 8) ? "pon" : (N == 3) ? "bon" : "hon");
        }
    } main {
        try (Scanner sc = new Scanner(System.in)) {
            int N = sc.nextInt() % 10;
            System.out.println((N == 0 || N == 1 || N == 6 || N == 8) ? "pon" : (N == 3) ? "bon" : "hon");
        }
    } try (Scanner sc = new Scanner(System.in)) {
            int N = sc.nextInt() % 10;
            System.out.println((N == 0 || N == 1 || N == 6 || N == 8) ? "pon" : (N == 3) ? "bon" : "hon");
        } {
            int N = sc.nextInt() % 10;
            System.out.println((N == 0 || N == 1 || N == 6 || N == 8) ? "pon" : (N == 3) ? "bon" : "hon");
        } Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) int N = sc.nextInt() % 10; N sc.nextInt() % 10 sc.nextInt() sc.nextInt sc 10 System.out.println((N == 0 || N == 1 || N == 6 || N == 8) ? "pon" : (N == 3) ? "bon" : "hon") System.out.println System.out System System.out (N == 0 || N == 1 || N == 6 || N == 8) ? "pon" : (N == 3) ? "bon" : "hon" (N == 0 || N == 1 || N == 6 || N == 8) N == 6 N == 0 || N == 1 || N == 6 || N == 8 N == 0 N 0 N == 1 N 1 N == 6 N 6 N == 8 N 8 "pon" (N == 3) ? "bon" : "hon" (N == 3) N 3 "bon" "hon" String[] args args public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            int N = sc.nextInt() % 10;
            System.out.println((N == 0 || N == 1 || N == 6 || N == 8) ? "pon" : (N == 3) ? "bon" : "hon");
        }
    }
} public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            int N = sc.nextInt() % 10;
            System.out.println((N == 0 || N == 1 || N == 6 || N == 8) ? "pon" : (N == 3) ? "bon" : "hon");
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            int N = sc.nextInt() % 10;
            System.out.println((N == 0 || N == 1 || N == 6 || N == 8) ? "pon" : (N == 3) ? "bon" : "hon");
        }
    }
}
