import java.util.Scanner;

public class Main {

    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        String S = scanner.nextLine();
        char s = S.charAt(S.length() - 1);
        if (s == '2' || s == '4' || s == '5' || s == '7' || s == '9'){
            System.out.println("hon");
        } else if(s == '3'){
            System.out.println("bon");
        } else {
            System.out.println("pon");
        }

        scanner.close();
    }

} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        String S = scanner.nextLine();
        char s = S.charAt(S.length() - 1);
        if (s == '2' || s == '4' || s == '5' || s == '7' || s == '9'){
            System.out.println("hon");
        } else if(s == '3'){
            System.out.println("bon");
        } else {
            System.out.println("pon");
        }

        scanner.close();
    }

} Main public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        String S = scanner.nextLine();
        char s = S.charAt(S.length() - 1);
        if (s == '2' || s == '4' || s == '5' || s == '7' || s == '9'){
            System.out.println("hon");
        } else if(s == '3'){
            System.out.println("bon");
        } else {
            System.out.println("pon");
        }

        scanner.close();
    } main {
        Scanner scanner = new Scanner(System.in);
        String S = scanner.nextLine();
        char s = S.charAt(S.length() - 1);
        if (s == '2' || s == '4' || s == '5' || s == '7' || s == '9'){
            System.out.println("hon");
        } else if(s == '3'){
            System.out.println("bon");
        } else {
            System.out.println("pon");
        }

        scanner.close();
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String S = scanner.nextLine(); S scanner.nextLine() scanner.nextLine scanner char s = S.charAt(S.length() - 1); s S.charAt(S.length() - 1) S.charAt S S.length() - 1 S.length() S.length S 1 if (s == '2' || s == '4' || s == '5' || s == '7' || s == '9'){
            System.out.println("hon");
        } else if(s == '3'){
            System.out.println("bon");
        } else {
            System.out.println("pon");
        } s == '2' || s == '4' || s == '5' || s == '7' || s == '9' s == '7' s == '5' s == '2' || s == '4' || s == '5' || s == '7' || s == '9' s == '2' s '2' s == '4' s '4' s == '5' s '5' s == '7' s '7' s == '9' s '9' {
            System.out.println("hon");
        } System.out.println("hon") System.out.println System.out System System.out "hon" if(s == '3'){
            System.out.println("bon");
        } else {
            System.out.println("pon");
        } s == '3' s '3' {
            System.out.println("bon");
        } System.out.println("bon") System.out.println System.out System System.out "bon" {
            System.out.println("pon");
        } System.out.println("pon") System.out.println System.out System System.out "pon" scanner.close() scanner.close scanner String args[] args public class Main {

    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        String S = scanner.nextLine();
        char s = S.charAt(S.length() - 1);
        if (s == '2' || s == '4' || s == '5' || s == '7' || s == '9'){
            System.out.println("hon");
        } else if(s == '3'){
            System.out.println("bon");
        } else {
            System.out.println("pon");
        }

        scanner.close();
    }

} public class Main {

    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        String S = scanner.nextLine();
        char s = S.charAt(S.length() - 1);
        if (s == '2' || s == '4' || s == '5' || s == '7' || s == '9'){
            System.out.println("hon");
        } else if(s == '3'){
            System.out.println("bon");
        } else {
            System.out.println("pon");
        }

        scanner.close();
    }

} Main
import java.util.Scanner;

public class Main {

    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        String S = scanner.nextLine();
        char s = S.charAt(S.length() - 1);
        if (s == '2' || s == '4' || s == '5' || s == '7' || s == '9'){
            System.out.println("hon");
        } else if(s == '3'){
            System.out.println("bon");
        } else {
            System.out.println("pon");
        }

        scanner.close();
    }

}