import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = Integer.parseInt(sc.next()) % 10;
        String reuslt;
        switch (num) {
            case 2:
            case 4:
            case 5:
            case 7:
            case 9:
                reuslt = "hon";
                break;
            case 0:
            case 1:
            case 6:
            case 8:
                reuslt = "pon";
                break;
            case 3:
                reuslt = "bon";
                break;
            default:
                throw new IllegalArgumentException();
        }

        System.out.println(reuslt);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = Integer.parseInt(sc.next()) % 10;
        String reuslt;
        switch (num) {
            case 2:
            case 4:
            case 5:
            case 7:
            case 9:
                reuslt = "hon";
                break;
            case 0:
            case 1:
            case 6:
            case 8:
                reuslt = "pon";
                break;
            case 3:
                reuslt = "bon";
                break;
            default:
                throw new IllegalArgumentException();
        }

        System.out.println(reuslt);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = Integer.parseInt(sc.next()) % 10;
        String reuslt;
        switch (num) {
            case 2:
            case 4:
            case 5:
            case 7:
            case 9:
                reuslt = "hon";
                break;
            case 0:
            case 1:
            case 6:
            case 8:
                reuslt = "pon";
                break;
            case 3:
                reuslt = "bon";
                break;
            default:
                throw new IllegalArgumentException();
        }

        System.out.println(reuslt);
    } main {
        Scanner sc = new Scanner(System.in);
        int num = Integer.parseInt(sc.next()) % 10;
        String reuslt;
        switch (num) {
            case 2:
            case 4:
            case 5:
            case 7:
            case 9:
                reuslt = "hon";
                break;
            case 0:
            case 1:
            case 6:
            case 8:
                reuslt = "pon";
                break;
            case 3:
                reuslt = "bon";
                break;
            default:
                throw new IllegalArgumentException();
        }

        System.out.println(reuslt);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = Integer.parseInt(sc.next()) % 10; num Integer.parseInt(sc.next()) % 10 Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc 10 String reuslt; reuslt switch (num) {
            case 2:
            case 4:
            case 5:
            case 7:
            case 9:
                reuslt = "hon";
                break;
            case 0:
            case 1:
            case 6:
            case 8:
                reuslt = "pon";
                break;
            case 3:
                reuslt = "bon";
                break;
            default:
                throw new IllegalArgumentException();
        } num case 2: 2 case 2: case 4: 4 case 4: case 5: 5 case 5: case 7: 7 case 7: case 9: 9 case 9: reuslt = "hon" reuslt "hon" break; case 0: 0 case 0: case 1: 1 case 1: case 6: 6 case 6: case 8: 8 case 8: reuslt = "pon" reuslt "pon" break; case 3: 3 case 3: reuslt = "bon" reuslt "bon" break; default: default: throw new IllegalArgumentException(); new IllegalArgumentException() System.out.println(reuslt) System.out.println System.out System System.out reuslt String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = Integer.parseInt(sc.next()) % 10;
        String reuslt;
        switch (num) {
            case 2:
            case 4:
            case 5:
            case 7:
            case 9:
                reuslt = "hon";
                break;
            case 0:
            case 1:
            case 6:
            case 8:
                reuslt = "pon";
                break;
            case 3:
                reuslt = "bon";
                break;
            default:
                throw new IllegalArgumentException();
        }

        System.out.println(reuslt);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = Integer.parseInt(sc.next()) % 10;
        String reuslt;
        switch (num) {
            case 2:
            case 4:
            case 5:
            case 7:
            case 9:
                reuslt = "hon";
                break;
            case 0:
            case 1:
            case 6:
            case 8:
                reuslt = "pon";
                break;
            case 3:
                reuslt = "bon";
                break;
            default:
                throw new IllegalArgumentException();
        }

        System.out.println(reuslt);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = Integer.parseInt(sc.next()) % 10;
        String reuslt;
        switch (num) {
            case 2:
            case 4:
            case 5:
            case 7:
            case 9:
                reuslt = "hon";
                break;
            case 0:
            case 1:
            case 6:
            case 8:
                reuslt = "pon";
                break;
            case 3:
                reuslt = "bon";
                break;
            default:
                throw new IllegalArgumentException();
        }

        System.out.println(reuslt);
    }
}