import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int N = s.nextInt();
        int r = N % 10;
        if (r == 3) System.out.print("bon");
        else if (r <= 1 || r == 6 || r == 8) System.out.print("pon");
        else System.out.print("hon");
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int N = s.nextInt();
        int r = N % 10;
        if (r == 3) System.out.print("bon");
        else if (r <= 1 || r == 6 || r == 8) System.out.print("pon");
        else System.out.print("hon");
    }
} Main public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int N = s.nextInt();
        int r = N % 10;
        if (r == 3) System.out.print("bon");
        else if (r <= 1 || r == 6 || r == 8) System.out.print("pon");
        else System.out.print("hon");
    } main {
        Scanner s = new Scanner(System.in);
        int N = s.nextInt();
        int r = N % 10;
        if (r == 3) System.out.print("bon");
        else if (r <= 1 || r == 6 || r == 8) System.out.print("pon");
        else System.out.print("hon");
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int N = s.nextInt(); N s.nextInt() s.nextInt s int r = N % 10; r N % 10 N 10 if (r == 3) System.out.print("bon");
        else if (r <= 1 || r == 6 || r == 8) System.out.print("pon");
        else System.out.print("hon"); r == 3 r 3 System.out.print("bon") System.out.print System.out System System.out "bon" if (r <= 1 || r == 6 || r == 8) System.out.print("pon");
        else System.out.print("hon"); r <= 1 || r == 6 || r == 8 r <= 1 || r == 6 || r == 8 r <= 1 r 1 r == 6 r 6 r == 8 r 8 System.out.print("pon") System.out.print System.out System System.out "pon" System.out.print("hon") System.out.print System.out System System.out "hon" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int N = s.nextInt();
        int r = N % 10;
        if (r == 3) System.out.print("bon");
        else if (r <= 1 || r == 6 || r == 8) System.out.print("pon");
        else System.out.print("hon");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int N = s.nextInt();
        int r = N % 10;
        if (r == 3) System.out.print("bon");
        else if (r <= 1 || r == 6 || r == 8) System.out.print("pon");
        else System.out.print("hon");
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int N = s.nextInt();
        int r = N % 10;
        if (r == 3) System.out.print("bon");
        else if (r <= 1 || r == 6 || r == 8) System.out.print("pon");
        else System.out.print("hon");
    }
}