import java.util.Scanner;

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

        int rank1=Character.getNumericValue(c[c.length-1]);

        if (rank1 == 2 || rank1 == 4 || rank1 == 5 || rank1 == 7 || rank1 == 9) {
            System.out.println("hon");
        } else if (rank1 == 0 || rank1 == 1 || rank1 == 6 || rank1 == 8) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        }

        sc.close();
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String N = sc.next();
        char[] c=N.toCharArray();

        int rank1=Character.getNumericValue(c[c.length-1]);

        if (rank1 == 2 || rank1 == 4 || rank1 == 5 || rank1 == 7 || rank1 == 9) {
            System.out.println("hon");
        } else if (rank1 == 0 || rank1 == 1 || rank1 == 6 || rank1 == 8) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        }

        sc.close();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String N = sc.next();
        char[] c=N.toCharArray();

        int rank1=Character.getNumericValue(c[c.length-1]);

        if (rank1 == 2 || rank1 == 4 || rank1 == 5 || rank1 == 7 || rank1 == 9) {
            System.out.println("hon");
        } else if (rank1 == 0 || rank1 == 1 || rank1 == 6 || rank1 == 8) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        }

        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        String N = sc.next();
        char[] c=N.toCharArray();

        int rank1=Character.getNumericValue(c[c.length-1]);

        if (rank1 == 2 || rank1 == 4 || rank1 == 5 || rank1 == 7 || rank1 == 9) {
            System.out.println("hon");
        } else if (rank1 == 0 || rank1 == 1 || rank1 == 6 || rank1 == 8) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        }

        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String N = sc.next(); N sc.next() sc.next sc char[] c=N.toCharArray(); c N.toCharArray() N.toCharArray N int rank1=Character.getNumericValue(c[c.length-1]); rank1 Character.getNumericValue(c[c.length-1]) Character.getNumericValue Character c[c.length-1] c c.length-1 c.length c c.length 1 if (rank1 == 2 || rank1 == 4 || rank1 == 5 || rank1 == 7 || rank1 == 9) {
            System.out.println("hon");
        } else if (rank1 == 0 || rank1 == 1 || rank1 == 6 || rank1 == 8) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        } rank1 == 2 || rank1 == 4 || rank1 == 5 || rank1 == 7 || rank1 == 9 rank1 == 7 rank1 == 5 rank1 == 2 || rank1 == 4 || rank1 == 5 || rank1 == 7 || rank1 == 9 rank1 == 2 rank1 2 rank1 == 4 rank1 4 rank1 == 5 rank1 5 rank1 == 7 rank1 7 rank1 == 9 rank1 9 {
            System.out.println("hon");
        } System.out.println("hon") System.out.println System.out System System.out "hon" if (rank1 == 0 || rank1 == 1 || rank1 == 6 || rank1 == 8) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        } rank1 == 0 || rank1 == 1 || rank1 == 6 || rank1 == 8 rank1 == 6 rank1 == 0 || rank1 == 1 || rank1 == 6 || rank1 == 8 rank1 == 0 rank1 0 rank1 == 1 rank1 1 rank1 == 6 rank1 6 rank1 == 8 rank1 8 {
            System.out.println("pon");
        } System.out.println("pon") System.out.println System.out System System.out "pon" {
            System.out.println("bon");
        } System.out.println("bon") System.out.println System.out System System.out "bon" sc.close() sc.close sc String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String N = sc.next();
        char[] c=N.toCharArray();

        int rank1=Character.getNumericValue(c[c.length-1]);

        if (rank1 == 2 || rank1 == 4 || rank1 == 5 || rank1 == 7 || rank1 == 9) {
            System.out.println("hon");
        } else if (rank1 == 0 || rank1 == 1 || rank1 == 6 || rank1 == 8) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        }

        sc.close();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String N = sc.next();
        char[] c=N.toCharArray();

        int rank1=Character.getNumericValue(c[c.length-1]);

        if (rank1 == 2 || rank1 == 4 || rank1 == 5 || rank1 == 7 || rank1 == 9) {
            System.out.println("hon");
        } else if (rank1 == 0 || rank1 == 1 || rank1 == 6 || rank1 == 8) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        }

        sc.close();
    }
} Main
import java.util.Scanner;

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

        int rank1=Character.getNumericValue(c[c.length-1]);

        if (rank1 == 2 || rank1 == 4 || rank1 == 5 || rank1 == 7 || rank1 == 9) {
            System.out.println("hon");
        } else if (rank1 == 0 || rank1 == 1 || rank1 == 6 || rank1 == 8) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        }

        sc.close();
    }
}