
import java.util.*;
import java.io.*;

import static java.lang.Character.isUpperCase;

public class Main {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);

        String str = in.next();



        int a = str.length()- 1;



        char ch = str.charAt(a);


        if(ch=='2'|| ch=='4'|| ch=='5' || ch=='7' || ch=='9')
        {
            System.out.println("hon");
        }

        else if(ch=='0' || ch=='1' || ch=='6' || ch=='8')
        {
            System.out.println("pon");
        }

        else if(ch=='3')
        {
            System.out.println("bon");
        }



    }







    }



 import java.util.*; util.* java import java.io.*; io.* java import static java.lang.Character.isUpperCase; import static java.lang.Character.isUpperCase; import static java.lang.Character.isUpperCase; public class Main {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);

        String str = in.next();



        int a = str.length()- 1;



        char ch = str.charAt(a);


        if(ch=='2'|| ch=='4'|| ch=='5' || ch=='7' || ch=='9')
        {
            System.out.println("hon");
        }

        else if(ch=='0' || ch=='1' || ch=='6' || ch=='8')
        {
            System.out.println("pon");
        }

        else if(ch=='3')
        {
            System.out.println("bon");
        }



    }







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

        Scanner in = new Scanner(System.in);

        String str = in.next();



        int a = str.length()- 1;



        char ch = str.charAt(a);


        if(ch=='2'|| ch=='4'|| ch=='5' || ch=='7' || ch=='9')
        {
            System.out.println("hon");
        }

        else if(ch=='0' || ch=='1' || ch=='6' || ch=='8')
        {
            System.out.println("pon");
        }

        else if(ch=='3')
        {
            System.out.println("bon");
        }



    } main {

        Scanner in = new Scanner(System.in);

        String str = in.next();



        int a = str.length()- 1;



        char ch = str.charAt(a);


        if(ch=='2'|| ch=='4'|| ch=='5' || ch=='7' || ch=='9')
        {
            System.out.println("hon");
        }

        else if(ch=='0' || ch=='1' || ch=='6' || ch=='8')
        {
            System.out.println("pon");
        }

        else if(ch=='3')
        {
            System.out.println("bon");
        }



    } Scanner in = new Scanner(System.in); in new Scanner(System.in) String str = in.next(); str in.next() in.next in int a = str.length()- 1; a str.length()- 1 str.length() str.length str 1 char ch = str.charAt(a); ch str.charAt(a) str.charAt str a if(ch=='2'|| ch=='4'|| ch=='5' || ch=='7' || ch=='9')
        {
            System.out.println("hon");
        }

        else if(ch=='0' || ch=='1' || ch=='6' || ch=='8')
        {
            System.out.println("pon");
        }

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

        else if(ch=='3')
        {
            System.out.println("bon");
        } ch=='0' || ch=='1' || ch=='6' || ch=='8' ch=='6' ch=='0' || ch=='1' || ch=='6' || ch=='8' ch=='0' ch '0' ch=='1' ch '1' ch=='6' ch '6' ch=='8' ch '8' {
            System.out.println("pon");
        } System.out.println("pon") System.out.println System.out System System.out "pon" if(ch=='3')
        {
            System.out.println("bon");
        } ch=='3' ch '3' {
            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 in = new Scanner(System.in);

        String str = in.next();



        int a = str.length()- 1;



        char ch = str.charAt(a);


        if(ch=='2'|| ch=='4'|| ch=='5' || ch=='7' || ch=='9')
        {
            System.out.println("hon");
        }

        else if(ch=='0' || ch=='1' || ch=='6' || ch=='8')
        {
            System.out.println("pon");
        }

        else if(ch=='3')
        {
            System.out.println("bon");
        }



    }







    } public class Main {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);

        String str = in.next();



        int a = str.length()- 1;



        char ch = str.charAt(a);


        if(ch=='2'|| ch=='4'|| ch=='5' || ch=='7' || ch=='9')
        {
            System.out.println("hon");
        }

        else if(ch=='0' || ch=='1' || ch=='6' || ch=='8')
        {
            System.out.println("pon");
        }

        else if(ch=='3')
        {
            System.out.println("bon");
        }



    }







    } Main

import java.util.*;
import java.io.*;

import static java.lang.Character.isUpperCase;

public class Main {

    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);

        String str = in.next();



        int a = str.length()- 1;



        char ch = str.charAt(a);


        if(ch=='2'|| ch=='4'|| ch=='5' || ch=='7' || ch=='9')
        {
            System.out.println("hon");
        }

        else if(ch=='0' || ch=='1' || ch=='6' || ch=='8')
        {
            System.out.println("pon");
        }

        else if(ch=='3')
        {
            System.out.println("bon");
        }



    }







    }




