import java.util.*;

class Main {
    
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
        
        int rem = n % 10;
        
        if(rem == 2 || rem == 4 || rem == 5 || rem == 7 || rem == 9)
            System.out.println("hon");
        else if(rem == 3)
            System.out.println("bon");
        else
            System.out.println("pon");
    }
} import java.util.*; util.* java class Main {
    
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
        
        int rem = n % 10;
        
        if(rem == 2 || rem == 4 || rem == 5 || rem == 7 || rem == 9)
            System.out.println("hon");
        else if(rem == 3)
            System.out.println("bon");
        else
            System.out.println("pon");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
        
        int rem = n % 10;
        
        if(rem == 2 || rem == 4 || rem == 5 || rem == 7 || rem == 9)
            System.out.println("hon");
        else if(rem == 3)
            System.out.println("bon");
        else
            System.out.println("pon");
    } main {
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
        
        int rem = n % 10;
        
        if(rem == 2 || rem == 4 || rem == 5 || rem == 7 || rem == 9)
            System.out.println("hon");
        else if(rem == 3)
            System.out.println("bon");
        else
            System.out.println("pon");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int rem = n % 10; rem n % 10 n 10 if(rem == 2 || rem == 4 || rem == 5 || rem == 7 || rem == 9)
            System.out.println("hon");
        else if(rem == 3)
            System.out.println("bon");
        else
            System.out.println("pon"); rem == 2 || rem == 4 || rem == 5 || rem == 7 || rem == 9 rem == 7 rem == 5 rem == 2 || rem == 4 || rem == 5 || rem == 7 || rem == 9 rem == 2 rem 2 rem == 4 rem 4 rem == 5 rem 5 rem == 7 rem 7 rem == 9 rem 9 System.out.println("hon") System.out.println System.out System System.out "hon" if(rem == 3)
            System.out.println("bon");
        else
            System.out.println("pon"); rem == 3 rem 3 System.out.println("bon") System.out.println System.out System System.out "bon" System.out.println("pon") System.out.println System.out System System.out "pon" String[] args args
import java.util.*;

class Main {
    
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int n = sc.nextInt();
        
        int rem = n % 10;
        
        if(rem == 2 || rem == 4 || rem == 5 || rem == 7 || rem == 9)
            System.out.println("hon");
        else if(rem == 3)
            System.out.println("bon");
        else
            System.out.println("pon");
    }
}