import java.util.Scanner;

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

        if (number >= 10) {
            number = number % 10;
        }

        if (number == 2 | number == 4 | number == 5 | number == 7 | number == 9) {
            System.out.println("hon");
        } else if (number == 0 | number == 1 | number == 6 | number ==8) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Integer number = scanner.nextInt();

        if (number >= 10) {
            number = number % 10;
        }

        if (number == 2 | number == 4 | number == 5 | number == 7 | number == 9) {
            System.out.println("hon");
        } else if (number == 0 | number == 1 | number == 6 | number ==8) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        }
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Integer number = scanner.nextInt();

        if (number >= 10) {
            number = number % 10;
        }

        if (number == 2 | number == 4 | number == 5 | number == 7 | number == 9) {
            System.out.println("hon");
        } else if (number == 0 | number == 1 | number == 6 | number ==8) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        Integer number = scanner.nextInt();

        if (number >= 10) {
            number = number % 10;
        }

        if (number == 2 | number == 4 | number == 5 | number == 7 | number == 9) {
            System.out.println("hon");
        } else if (number == 0 | number == 1 | number == 6 | number ==8) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) Integer number = scanner.nextInt(); number scanner.nextInt() scanner.nextInt scanner if (number >= 10) {
            number = number % 10;
        } number >= 10 number 10 {
            number = number % 10;
        } number = number % 10 number number % 10 number 10 if (number == 2 | number == 4 | number == 5 | number == 7 | number == 9) {
            System.out.println("hon");
        } else if (number == 0 | number == 1 | number == 6 | number ==8) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        } number == 2 | number == 4 | number == 5 | number == 7 | number == 9 number == 7 number == 5 number == 2 | number == 4 | number == 5 | number == 7 | number == 9 number == 2 number 2 number == 4 number 4 number == 5 number 5 number == 7 number 7 number == 9 number 9 {
            System.out.println("hon");
        } System.out.println("hon") System.out.println System.out System System.out "hon" if (number == 0 | number == 1 | number == 6 | number ==8) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        } number == 0 | number == 1 | number == 6 | number ==8 number == 6 number == 0 | number == 1 | number == 6 | number ==8 number == 0 number 0 number == 1 number 1 number == 6 number 6 number ==8 number 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" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Integer number = scanner.nextInt();

        if (number >= 10) {
            number = number % 10;
        }

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

        if (number >= 10) {
            number = number % 10;
        }

        if (number == 2 | number == 4 | number == 5 | number == 7 | number == 9) {
            System.out.println("hon");
        } else if (number == 0 | number == 1 | number == 6 | number ==8) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        }
    }
} Main
import java.util.Scanner;

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

        if (number >= 10) {
            number = number % 10;
        }

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