    import java.util.Scanner;
    
    public class Main {
    	public static void main(String[] args){
    		Scanner sc = new Scanner(System.in);
    		// 整数の入力
    		int a = sc.nextInt();
    		
    		if(a%10==3) {
    			System.out.println("bon");
    		}else if(a%10==0||a%10==1||a%10==6||a%10==8) {
    			System.out.println("pon");
    		}else {
    			System.out.println("hon");
    		}
    		
    	}
    }