import java.util.*;

public class MyClass {
    public static void main(String args[]) {
        
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int rem = n%10;
        if(rem==3){
            System.out.println("bon");
        }else if(rem==0 ||rem==1 ||rem==6 ||rem==8){
            System.out.println("pon");
        }else{ System.out.println("hon");
           
        }
    }
}