import java.util.*;
class Main{
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int x = s.nextInt();
        int y = x % 10;
        String z = "hon";
        if(y==3){
            z = "bon";
        }else if(y==0|y==1|y==6|y==8){
            z = "pon";
        }
        System.out.println(z);        
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int x = s.nextInt();
        int y = x % 10;
        String z = "hon";
        if(y==3){
            z = "bon";
        }else if(y==0|y==1|y==6|y==8){
            z = "pon";
        }
        System.out.println(z);        
    }
} Main public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int x = s.nextInt();
        int y = x % 10;
        String z = "hon";
        if(y==3){
            z = "bon";
        }else if(y==0|y==1|y==6|y==8){
            z = "pon";
        }
        System.out.println(z);        
    } main {
        Scanner s = new Scanner(System.in);
        int x = s.nextInt();
        int y = x % 10;
        String z = "hon";
        if(y==3){
            z = "bon";
        }else if(y==0|y==1|y==6|y==8){
            z = "pon";
        }
        System.out.println(z);        
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int x = s.nextInt(); x s.nextInt() s.nextInt s int y = x % 10; y x % 10 x 10 String z = "hon"; z "hon" if(y==3){
            z = "bon";
        }else if(y==0|y==1|y==6|y==8){
            z = "pon";
        } y==3 y 3 {
            z = "bon";
        } z = "bon" z "bon" if(y==0|y==1|y==6|y==8){
            z = "pon";
        } y==0|y==1|y==6|y==8 y==6 y==0|y==1|y==6|y==8 y==0 y 0 y==1 y 1 y==6 y 6 y==8 y 8 {
            z = "pon";
        } z = "pon" z "pon" System.out.println(z) System.out.println System.out System System.out z String[] args args
import java.util.*;
class Main{
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int x = s.nextInt();
        int y = x % 10;
        String z = "hon";
        if(y==3){
            z = "bon";
        }else if(y==0|y==1|y==6|y==8){
            z = "pon";
        }
        System.out.println(z);        
    }
}