using System;

class Program {
  static void Main(string[] args) {
    int n = int.Parse(Console.ReadLine());
    if (n == 3) {
      Console.WriteLine("bon");
    }
    else if (n == 0 || n == 1 || n == 6 || n == 8) {
      Console.WriteLine("pon");
    }
    else {
      Console.WriteLine("hon");
    }
  }
}