import java.util.Scanner;
public class Main {
  public static void main(String[] args){
  Scanner input = new Scanner(System.in);
  String num = input.next();
  String inputLast = num.substring(num.length()-1);
  //System.out.println(inputLast);
    //(inputLast.equals("3")){
    //System.out.println("bon");
    //se if()
    switch(inputLast){
      case "3":
        System.out.println("bon");
        break;
      case "0":
      case "1":
      case "6":
      case "8":
        System.out.println("pon");
        break;
      default:
        System.out.println("hon");
  }
}
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args){
  Scanner input = new Scanner(System.in);
  String num = input.next();
  String inputLast = num.substring(num.length()-1);
  //System.out.println(inputLast);
    //(inputLast.equals("3")){
    //System.out.println("bon");
    //se if()
    switch(inputLast){
      case "3":
        System.out.println("bon");
        break;
      case "0":
      case "1":
      case "6":
      case "8":
        System.out.println("pon");
        break;
      default:
        System.out.println("hon");
  }
}
} Main public static void main(String[] args){
  Scanner input = new Scanner(System.in);
  String num = input.next();
  String inputLast = num.substring(num.length()-1);
  //System.out.println(inputLast);
    //(inputLast.equals("3")){
    //System.out.println("bon");
    //se if()
    switch(inputLast){
      case "3":
        System.out.println("bon");
        break;
      case "0":
      case "1":
      case "6":
      case "8":
        System.out.println("pon");
        break;
      default:
        System.out.println("hon");
  }
} main {
  Scanner input = new Scanner(System.in);
  String num = input.next();
  String inputLast = num.substring(num.length()-1);
  //System.out.println(inputLast);
    //(inputLast.equals("3")){
    //System.out.println("bon");
    //se if()
    switch(inputLast){
      case "3":
        System.out.println("bon");
        break;
      case "0":
      case "1":
      case "6":
      case "8":
        System.out.println("pon");
        break;
      default:
        System.out.println("hon");
  }
} Scanner input = new Scanner(System.in); input new Scanner(System.in) String num = input.next(); num input.next() input.next input String inputLast = num.substring(num.length()-1); inputLast num.substring(num.length()-1) num.substring num num.length()-1 num.length() num.length num 1 switch(inputLast){
      case "3":
        System.out.println("bon");
        break;
      case "0":
      case "1":
      case "6":
      case "8":
        System.out.println("pon");
        break;
      default:
        System.out.println("hon");
  } inputLast case "3": "3" case "3": System.out.println("bon") System.out.println System.out System System.out "bon" break; case "0": "0" case "0": case "1": "1" case "1": case "6": "6" case "6": case "8": "8" case "8": System.out.println("pon") System.out.println System.out System System.out "pon" break; default: default: 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 input = new Scanner(System.in);
  String num = input.next();
  String inputLast = num.substring(num.length()-1);
  //System.out.println(inputLast);
    //(inputLast.equals("3")){
    //System.out.println("bon");
    //se if()
    switch(inputLast){
      case "3":
        System.out.println("bon");
        break;
      case "0":
      case "1":
      case "6":
      case "8":
        System.out.println("pon");
        break;
      default:
        System.out.println("hon");
  }
}
} public class Main {
  public static void main(String[] args){
  Scanner input = new Scanner(System.in);
  String num = input.next();
  String inputLast = num.substring(num.length()-1);
  //System.out.println(inputLast);
    //(inputLast.equals("3")){
    //System.out.println("bon");
    //se if()
    switch(inputLast){
      case "3":
        System.out.println("bon");
        break;
      case "0":
      case "1":
      case "6":
      case "8":
        System.out.println("pon");
        break;
      default:
        System.out.println("hon");
  }
}
} Main
import java.util.Scanner;
public class Main {
  public static void main(String[] args){
  Scanner input = new Scanner(System.in);
  String num = input.next();
  String inputLast = num.substring(num.length()-1);
  //System.out.println(inputLast);
    //(inputLast.equals("3")){
    //System.out.println("bon");
    //se if()
    switch(inputLast){
      case "3":
        System.out.println("bon");
        break;
      case "0":
      case "1":
      case "6":
      case "8":
        System.out.println("pon");
        break;
      default:
        System.out.println("hon");
  }
}
}