import java.util.*;
import java.util.stream.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int r = n%10;
        String ans = "";
        if (r == 2 || r == 4 || r == 5 || r == 7 || r == 9) {
            ans = "hon";
        }
        else if (r == 0 || r == 1 || r == 6 || r == 8) {
            ans = "pon";
        }
        else {
            ans = "bon";
        }

        System.out.println(ans);
    }
} import java.util.*; util.* java import java.util.stream.*; stream.* java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int r = n%10;
        String ans = "";
        if (r == 2 || r == 4 || r == 5 || r == 7 || r == 9) {
            ans = "hon";
        }
        else if (r == 0 || r == 1 || r == 6 || r == 8) {
            ans = "pon";
        }
        else {
            ans = "bon";
        }

        System.out.println(ans);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int r = n%10;
        String ans = "";
        if (r == 2 || r == 4 || r == 5 || r == 7 || r == 9) {
            ans = "hon";
        }
        else if (r == 0 || r == 1 || r == 6 || r == 8) {
            ans = "pon";
        }
        else {
            ans = "bon";
        }

        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int r = n%10;
        String ans = "";
        if (r == 2 || r == 4 || r == 5 || r == 7 || r == 9) {
            ans = "hon";
        }
        else if (r == 0 || r == 1 || r == 6 || r == 8) {
            ans = "pon";
        }
        else {
            ans = "bon";
        }

        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int r = n%10; r n%10 n 10 String ans = ""; ans "" if (r == 2 || r == 4 || r == 5 || r == 7 || r == 9) {
            ans = "hon";
        }
        else if (r == 0 || r == 1 || r == 6 || r == 8) {
            ans = "pon";
        }
        else {
            ans = "bon";
        } r == 2 || r == 4 || r == 5 || r == 7 || r == 9 r == 7 r == 5 r == 2 || r == 4 || r == 5 || r == 7 || r == 9 r == 2 r 2 r == 4 r 4 r == 5 r 5 r == 7 r 7 r == 9 r 9 {
            ans = "hon";
        } ans = "hon" ans "hon" if (r == 0 || r == 1 || r == 6 || r == 8) {
            ans = "pon";
        }
        else {
            ans = "bon";
        } r == 0 || r == 1 || r == 6 || r == 8 r == 6 r == 0 || r == 1 || r == 6 || r == 8 r == 0 r 0 r == 1 r 1 r == 6 r 6 r == 8 r 8 {
            ans = "pon";
        } ans = "pon" ans "pon" {
            ans = "bon";
        } ans = "bon" ans "bon" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int r = n%10;
        String ans = "";
        if (r == 2 || r == 4 || r == 5 || r == 7 || r == 9) {
            ans = "hon";
        }
        else if (r == 0 || r == 1 || r == 6 || r == 8) {
            ans = "pon";
        }
        else {
            ans = "bon";
        }

        System.out.println(ans);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int r = n%10;
        String ans = "";
        if (r == 2 || r == 4 || r == 5 || r == 7 || r == 9) {
            ans = "hon";
        }
        else if (r == 0 || r == 1 || r == 6 || r == 8) {
            ans = "pon";
        }
        else {
            ans = "bon";
        }

        System.out.println(ans);
    }
} Main
import java.util.*;
import java.util.stream.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int r = n%10;
        String ans = "";
        if (r == 2 || r == 4 || r == 5 || r == 7 || r == 9) {
            ans = "hon";
        }
        else if (r == 0 || r == 1 || r == 6 || r == 8) {
            ans = "pon";
        }
        else {
            ans = "bon";
        }

        System.out.println(ans);
    }
}
