using System;
using System.Collections.Generic;
using System.Linq;

public class Hello{
    public static void Main(){
        var cs = Console.ReadLine().ToCharArray();
        var c = cs[cs.Length - 1];
        
        var ret = "bon";
        if ((new int[] {2, 4, 5, 7, 9 }).Contains(c)) {
            ret = "hon";
        }
        
        if ((new int[] {0, 1, 6, 8}).Contains(c)) {
            ret = "pon";
        }

        System.Console.WriteLine(ret);
    }
}
