import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();

        System.out.println(solve(N));

        sc.close();
    }

    static String solve(int N) {
        int oneDigit = N % 10;

        if (oneDigit == 3) {
            return "bon";
        } else if (oneDigit == 0 || oneDigit == 1 || oneDigit == 6 || oneDigit == 8) {
            return "pon";
        } else {
            return "hon";
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();

        System.out.println(solve(N));

        sc.close();
    }

    static String solve(int N) {
        int oneDigit = N % 10;

        if (oneDigit == 3) {
            return "bon";
        } else if (oneDigit == 0 || oneDigit == 1 || oneDigit == 6 || oneDigit == 8) {
            return "pon";
        } else {
            return "hon";
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();

        System.out.println(solve(N));

        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();

        System.out.println(solve(N));

        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc System.out.println(solve(N)) System.out.println System.out System System.out solve(N) solve N sc.close() sc.close sc String[] args args static String solve(int N) {
        int oneDigit = N % 10;

        if (oneDigit == 3) {
            return "bon";
        } else if (oneDigit == 0 || oneDigit == 1 || oneDigit == 6 || oneDigit == 8) {
            return "pon";
        } else {
            return "hon";
        }
    } solve {
        int oneDigit = N % 10;

        if (oneDigit == 3) {
            return "bon";
        } else if (oneDigit == 0 || oneDigit == 1 || oneDigit == 6 || oneDigit == 8) {
            return "pon";
        } else {
            return "hon";
        }
    } int oneDigit = N % 10; oneDigit N % 10 N 10 if (oneDigit == 3) {
            return "bon";
        } else if (oneDigit == 0 || oneDigit == 1 || oneDigit == 6 || oneDigit == 8) {
            return "pon";
        } else {
            return "hon";
        } oneDigit == 3 oneDigit 3 {
            return "bon";
        } return "bon"; "bon" if (oneDigit == 0 || oneDigit == 1 || oneDigit == 6 || oneDigit == 8) {
            return "pon";
        } else {
            return "hon";
        } oneDigit == 0 || oneDigit == 1 || oneDigit == 6 || oneDigit == 8 oneDigit == 6 oneDigit == 0 || oneDigit == 1 || oneDigit == 6 || oneDigit == 8 oneDigit == 0 oneDigit 0 oneDigit == 1 oneDigit 1 oneDigit == 6 oneDigit 6 oneDigit == 8 oneDigit 8 {
            return "pon";
        } return "pon"; "pon" {
            return "hon";
        } return "hon"; "hon" int N N public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();

        System.out.println(solve(N));

        sc.close();
    }

    static String solve(int N) {
        int oneDigit = N % 10;

        if (oneDigit == 3) {
            return "bon";
        } else if (oneDigit == 0 || oneDigit == 1 || oneDigit == 6 || oneDigit == 8) {
            return "pon";
        } else {
            return "hon";
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();

        System.out.println(solve(N));

        sc.close();
    }

    static String solve(int N) {
        int oneDigit = N % 10;

        if (oneDigit == 3) {
            return "bon";
        } else if (oneDigit == 0 || oneDigit == 1 || oneDigit == 6 || oneDigit == 8) {
            return "pon";
        } else {
            return "hon";
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();

        System.out.println(solve(N));

        sc.close();
    }

    static String solve(int N) {
        int oneDigit = N % 10;

        if (oneDigit == 3) {
            return "bon";
        } else if (oneDigit == 0 || oneDigit == 1 || oneDigit == 6 || oneDigit == 8) {
            return "pon";
        } else {
            return "hon";
        }
    }
}