import java.util.*;
public class Main{
    public static void main(String[] args){
        Scanner input=new Scanner(System.in);
        String N=input.next();
        int a=N.charAt(N.length()-1)-48;
        if(a==3){
        System.out.print("bon");
        }else if(a==0||a==1||a==6||a==8){
        System.out.print("pon");
        }else{
        System.out.print("hon");
        }
    }   
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
        Scanner input=new Scanner(System.in);
        String N=input.next();
        int a=N.charAt(N.length()-1)-48;
        if(a==3){
        System.out.print("bon");
        }else if(a==0||a==1||a==6||a==8){
        System.out.print("pon");
        }else{
        System.out.print("hon");
        }
    }   
} Main public static void main(String[] args){
        Scanner input=new Scanner(System.in);
        String N=input.next();
        int a=N.charAt(N.length()-1)-48;
        if(a==3){
        System.out.print("bon");
        }else if(a==0||a==1||a==6||a==8){
        System.out.print("pon");
        }else{
        System.out.print("hon");
        }
    } main {
        Scanner input=new Scanner(System.in);
        String N=input.next();
        int a=N.charAt(N.length()-1)-48;
        if(a==3){
        System.out.print("bon");
        }else if(a==0||a==1||a==6||a==8){
        System.out.print("pon");
        }else{
        System.out.print("hon");
        }
    } Scanner input=new Scanner(System.in); input new Scanner(System.in) String N=input.next(); N input.next() input.next input int a=N.charAt(N.length()-1)-48; a N.charAt(N.length()-1)-48 N.charAt(N.length()-1) N.charAt N N.length()-1 N.length() N.length N 1 48 if(a==3){
        System.out.print("bon");
        }else if(a==0||a==1||a==6||a==8){
        System.out.print("pon");
        }else{
        System.out.print("hon");
        } a==3 a 3 {
        System.out.print("bon");
        } System.out.print("bon") System.out.print System.out System System.out "bon" if(a==0||a==1||a==6||a==8){
        System.out.print("pon");
        }else{
        System.out.print("hon");
        } a==0||a==1||a==6||a==8 a==6 a==0||a==1||a==6||a==8 a==0 a 0 a==1 a 1 a==6 a 6 a==8 a 8 {
        System.out.print("pon");
        } System.out.print("pon") System.out.print System.out System System.out "pon" {
        System.out.print("hon");
        } System.out.print("hon") System.out.print System.out System System.out "hon" String[] args args public class Main{
    public static void main(String[] args){
        Scanner input=new Scanner(System.in);
        String N=input.next();
        int a=N.charAt(N.length()-1)-48;
        if(a==3){
        System.out.print("bon");
        }else if(a==0||a==1||a==6||a==8){
        System.out.print("pon");
        }else{
        System.out.print("hon");
        }
    }   
} public class Main{
    public static void main(String[] args){
        Scanner input=new Scanner(System.in);
        String N=input.next();
        int a=N.charAt(N.length()-1)-48;
        if(a==3){
        System.out.print("bon");
        }else if(a==0||a==1||a==6||a==8){
        System.out.print("pon");
        }else{
        System.out.print("hon");
        }
    }   
} Main
import java.util.*;
public class Main{
    public static void main(String[] args){
        Scanner input=new Scanner(System.in);
        String N=input.next();
        int a=N.charAt(N.length()-1)-48;
        if(a==3){
        System.out.print("bon");
        }else if(a==0||a==1||a==6||a==8){
        System.out.print("pon");
        }else{
        System.out.print("hon");
        }
    }   
}