import java.util.*;
public class Main{
  public static void main(String args[])
  {
    Scanner in = new Scanner(System.in); 
    String s = in.nextLine();
    if(s.substring(s.length() - 1, s.length()).equals("3"))
    {
      System.out.println("bon");
    }
    else if(s.substring(s.length() - 1, s.length()).equals("0") || s.substring(s.length() - 1, s.length()).equals("1") || s.substring(s.length() - 1, s.length()).equals("6") || s.substring(s.length() - 1, s.length()).equals("8"))
    {
      System.out.println("pon");
    }
    else
    {
      System.out.println("hon");
    }
  }
} import java.util.*; util.* java public class Main{
  public static void main(String args[])
  {
    Scanner in = new Scanner(System.in); 
    String s = in.nextLine();
    if(s.substring(s.length() - 1, s.length()).equals("3"))
    {
      System.out.println("bon");
    }
    else if(s.substring(s.length() - 1, s.length()).equals("0") || s.substring(s.length() - 1, s.length()).equals("1") || s.substring(s.length() - 1, s.length()).equals("6") || s.substring(s.length() - 1, s.length()).equals("8"))
    {
      System.out.println("pon");
    }
    else
    {
      System.out.println("hon");
    }
  }
} Main public static void main(String args[])
  {
    Scanner in = new Scanner(System.in); 
    String s = in.nextLine();
    if(s.substring(s.length() - 1, s.length()).equals("3"))
    {
      System.out.println("bon");
    }
    else if(s.substring(s.length() - 1, s.length()).equals("0") || s.substring(s.length() - 1, s.length()).equals("1") || s.substring(s.length() - 1, s.length()).equals("6") || s.substring(s.length() - 1, s.length()).equals("8"))
    {
      System.out.println("pon");
    }
    else
    {
      System.out.println("hon");
    }
  } main {
    Scanner in = new Scanner(System.in); 
    String s = in.nextLine();
    if(s.substring(s.length() - 1, s.length()).equals("3"))
    {
      System.out.println("bon");
    }
    else if(s.substring(s.length() - 1, s.length()).equals("0") || s.substring(s.length() - 1, s.length()).equals("1") || s.substring(s.length() - 1, s.length()).equals("6") || s.substring(s.length() - 1, s.length()).equals("8"))
    {
      System.out.println("pon");
    }
    else
    {
      System.out.println("hon");
    }
  } Scanner in = new Scanner(System.in); in new Scanner(System.in) String s = in.nextLine(); s in.nextLine() in.nextLine in if(s.substring(s.length() - 1, s.length()).equals("3"))
    {
      System.out.println("bon");
    }
    else if(s.substring(s.length() - 1, s.length()).equals("0") || s.substring(s.length() - 1, s.length()).equals("1") || s.substring(s.length() - 1, s.length()).equals("6") || s.substring(s.length() - 1, s.length()).equals("8"))
    {
      System.out.println("pon");
    }
    else
    {
      System.out.println("hon");
    } s.substring(s.length() - 1, s.length()).equals("3") s.substring(s.length() - 1, s.length()).equals s.substring(s.length() - 1, s.length()) s.substring s s.length() - 1 s.length() s.length s 1 s.length() s.length s "3" {
      System.out.println("bon");
    } System.out.println("bon") System.out.println System.out System System.out "bon" if(s.substring(s.length() - 1, s.length()).equals("0") || s.substring(s.length() - 1, s.length()).equals("1") || s.substring(s.length() - 1, s.length()).equals("6") || s.substring(s.length() - 1, s.length()).equals("8"))
    {
      System.out.println("pon");
    }
    else
    {
      System.out.println("hon");
    } s.substring(s.length() - 1, s.length()).equals("0") || s.substring(s.length() - 1, s.length()).equals("1") || s.substring(s.length() - 1, s.length()).equals("6") || s.substring(s.length() - 1, s.length()).equals("8") s.substring(s.length() - 1, s.length()).equals("6") s.substring(s.length() - 1, s.length()).equals("0") || s.substring(s.length() - 1, s.length()).equals("1") || s.substring(s.length() - 1, s.length()).equals("6") || s.substring(s.length() - 1, s.length()).equals("8") s.substring(s.length() - 1, s.length()).equals("0") s.substring(s.length() - 1, s.length()).equals s.substring(s.length() - 1, s.length()) s.substring s s.length() - 1 s.length() s.length s 1 s.length() s.length s "0" s.substring(s.length() - 1, s.length()).equals("1") s.substring(s.length() - 1, s.length()).equals s.substring(s.length() - 1, s.length()) s.substring s s.length() - 1 s.length() s.length s 1 s.length() s.length s "1" s.substring(s.length() - 1, s.length()).equals("6") s.substring(s.length() - 1, s.length()).equals s.substring(s.length() - 1, s.length()) s.substring s s.length() - 1 s.length() s.length s 1 s.length() s.length s "6" s.substring(s.length() - 1, s.length()).equals("8") s.substring(s.length() - 1, s.length()).equals s.substring(s.length() - 1, s.length()) s.substring s s.length() - 1 s.length() s.length s 1 s.length() s.length s "8" {
      System.out.println("pon");
    } System.out.println("pon") System.out.println System.out System System.out "pon" {
      System.out.println("hon");
    } System.out.println("hon") System.out.println System.out System System.out "hon" String args[] args public class Main{
  public static void main(String args[])
  {
    Scanner in = new Scanner(System.in); 
    String s = in.nextLine();
    if(s.substring(s.length() - 1, s.length()).equals("3"))
    {
      System.out.println("bon");
    }
    else if(s.substring(s.length() - 1, s.length()).equals("0") || s.substring(s.length() - 1, s.length()).equals("1") || s.substring(s.length() - 1, s.length()).equals("6") || s.substring(s.length() - 1, s.length()).equals("8"))
    {
      System.out.println("pon");
    }
    else
    {
      System.out.println("hon");
    }
  }
} public class Main{
  public static void main(String args[])
  {
    Scanner in = new Scanner(System.in); 
    String s = in.nextLine();
    if(s.substring(s.length() - 1, s.length()).equals("3"))
    {
      System.out.println("bon");
    }
    else if(s.substring(s.length() - 1, s.length()).equals("0") || s.substring(s.length() - 1, s.length()).equals("1") || s.substring(s.length() - 1, s.length()).equals("6") || s.substring(s.length() - 1, s.length()).equals("8"))
    {
      System.out.println("pon");
    }
    else
    {
      System.out.println("hon");
    }
  }
} Main
import java.util.*;
public class Main{
  public static void main(String args[])
  {
    Scanner in = new Scanner(System.in); 
    String s = in.nextLine();
    if(s.substring(s.length() - 1, s.length()).equals("3"))
    {
      System.out.println("bon");
    }
    else if(s.substring(s.length() - 1, s.length()).equals("0") || s.substring(s.length() - 1, s.length()).equals("1") || s.substring(s.length() - 1, s.length()).equals("6") || s.substring(s.length() - 1, s.length()).equals("8"))
    {
      System.out.println("pon");
    }
    else
    {
      System.out.println("hon");
    }
  }
}