import java.util.Scanner;

public class Main {
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        int A = scanner.nextInt();
        if (A % 10 == 3) {
            System.out.println("bon");
        } else if (check(new int[]{0, 1, 6, 8}, A % 10)) {
            System.out.println("pon");
        } else {
            System.out.println("hon");
        }
    }

    private static boolean check(int[] ints, int i) {
        for (int anInt : ints) {
            if (anInt == i) {
                return true;
            }
        }
        return false;
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        int A = scanner.nextInt();
        if (A % 10 == 3) {
            System.out.println("bon");
        } else if (check(new int[]{0, 1, 6, 8}, A % 10)) {
            System.out.println("pon");
        } else {
            System.out.println("hon");
        }
    }

    private static boolean check(int[] ints, int i) {
        for (int anInt : ints) {
            if (anInt == i) {
                return true;
            }
        }
        return false;
    }
} Main public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        int A = scanner.nextInt();
        if (A % 10 == 3) {
            System.out.println("bon");
        } else if (check(new int[]{0, 1, 6, 8}, A % 10)) {
            System.out.println("pon");
        } else {
            System.out.println("hon");
        }
    } main {

        Scanner scanner = new Scanner(System.in);
        int A = scanner.nextInt();
        if (A % 10 == 3) {
            System.out.println("bon");
        } else if (check(new int[]{0, 1, 6, 8}, A % 10)) {
            System.out.println("pon");
        } else {
            System.out.println("hon");
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int A = scanner.nextInt(); A scanner.nextInt() scanner.nextInt scanner if (A % 10 == 3) {
            System.out.println("bon");
        } else if (check(new int[]{0, 1, 6, 8}, A % 10)) {
            System.out.println("pon");
        } else {
            System.out.println("hon");
        } A % 10 == 3 A % 10 A 10 3 {
            System.out.println("bon");
        } System.out.println("bon") System.out.println System.out System System.out "bon" if (check(new int[]{0, 1, 6, 8}, A % 10)) {
            System.out.println("pon");
        } else {
            System.out.println("hon");
        } check(new int[]{0, 1, 6, 8}, A % 10) check new int[]{0, 1, 6, 8} A % 10 A 10 {
            System.out.println("pon");
        } System.out.println("pon") System.out.println System.out System System.out "pon" {
            System.out.println("hon");
        } System.out.println("hon") System.out.println System.out System System.out "hon" String[] args args private static boolean check(int[] ints, int i) {
        for (int anInt : ints) {
            if (anInt == i) {
                return true;
            }
        }
        return false;
    } check {
        for (int anInt : ints) {
            if (anInt == i) {
                return true;
            }
        }
        return false;
    } for (int anInt : ints) {
            if (anInt == i) {
                return true;
            }
        } int anInt ints {
            if (anInt == i) {
                return true;
            }
        } {
            if (anInt == i) {
                return true;
            }
        } if (anInt == i) {
                return true;
            } anInt == i anInt i {
                return true;
            } return true; true return false; false int[] ints ints int i i public class Main {
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        int A = scanner.nextInt();
        if (A % 10 == 3) {
            System.out.println("bon");
        } else if (check(new int[]{0, 1, 6, 8}, A % 10)) {
            System.out.println("pon");
        } else {
            System.out.println("hon");
        }
    }

    private static boolean check(int[] ints, int i) {
        for (int anInt : ints) {
            if (anInt == i) {
                return true;
            }
        }
        return false;
    }
} public class Main {
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        int A = scanner.nextInt();
        if (A % 10 == 3) {
            System.out.println("bon");
        } else if (check(new int[]{0, 1, 6, 8}, A % 10)) {
            System.out.println("pon");
        } else {
            System.out.println("hon");
        }
    }

    private static boolean check(int[] ints, int i) {
        for (int anInt : ints) {
            if (anInt == i) {
                return true;
            }
        }
        return false;
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        int A = scanner.nextInt();
        if (A % 10 == 3) {
            System.out.println("bon");
        } else if (check(new int[]{0, 1, 6, 8}, A % 10)) {
            System.out.println("pon");
        } else {
            System.out.println("hon");
        }
    }

    private static boolean check(int[] ints, int i) {
        for (int anInt : ints) {
            if (anInt == i) {
                return true;
            }
        }
        return false;
    }
}