import java.util.*;
class Main {

  static Integer[] PON_ARR = new Integer[]{0,1,6,8};
  static  Integer[] BON_ARR = new Integer[]{3};
  static  List<Integer> PON_LIST = Arrays.asList(PON_ARR);
  static  List<Integer> BON_LIST = Arrays.asList(BON_ARR);

  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int val = a - (int)(a/10)*10;
    
    if(PON_LIST.contains(val)){
      System.out.println("pon");
    }else if(BON_LIST.contains(val)){
      System.out.println("bon");
    }else{
      System.out.println("hon");
    }
  }
} import java.util.*; util.* java class Main {

  static Integer[] PON_ARR = new Integer[]{0,1,6,8};
  static  Integer[] BON_ARR = new Integer[]{3};
  static  List<Integer> PON_LIST = Arrays.asList(PON_ARR);
  static  List<Integer> BON_LIST = Arrays.asList(BON_ARR);

  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int val = a - (int)(a/10)*10;
    
    if(PON_LIST.contains(val)){
      System.out.println("pon");
    }else if(BON_LIST.contains(val)){
      System.out.println("bon");
    }else{
      System.out.println("hon");
    }
  }
} Main static Integer[] PON_ARR = new Integer[]{0,1,6,8}; PON_ARR new Integer[]{0,1,6,8} static  Integer[] BON_ARR = new Integer[]{3}; BON_ARR new Integer[]{3} static  List<Integer> PON_LIST = Arrays.asList(PON_ARR); PON_LIST Arrays.asList(PON_ARR) Arrays.asList Arrays PON_ARR static  List<Integer> BON_LIST = Arrays.asList(BON_ARR); BON_LIST Arrays.asList(BON_ARR) Arrays.asList Arrays BON_ARR public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int val = a - (int)(a/10)*10;
    
    if(PON_LIST.contains(val)){
      System.out.println("pon");
    }else if(BON_LIST.contains(val)){
      System.out.println("bon");
    }else{
      System.out.println("hon");
    }
  } main {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int val = a - (int)(a/10)*10;
    
    if(PON_LIST.contains(val)){
      System.out.println("pon");
    }else if(BON_LIST.contains(val)){
      System.out.println("bon");
    }else{
      System.out.println("hon");
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int val = a - (int)(a/10)*10; val a - (int)(a/10)*10 a (int)(a/10)*10 (int)(a/10) a 10 10 if(PON_LIST.contains(val)){
      System.out.println("pon");
    }else if(BON_LIST.contains(val)){
      System.out.println("bon");
    }else{
      System.out.println("hon");
    } PON_LIST.contains(val) PON_LIST.contains PON_LIST val {
      System.out.println("pon");
    } System.out.println("pon") System.out.println System.out System System.out "pon" if(BON_LIST.contains(val)){
      System.out.println("bon");
    }else{
      System.out.println("hon");
    } BON_LIST.contains(val) BON_LIST.contains BON_LIST val {
      System.out.println("bon");
    } System.out.println("bon") System.out.println System.out System System.out "bon" {
      System.out.println("hon");
    } System.out.println("hon") System.out.println System.out System System.out "hon" String[] args args
import java.util.*;
class Main {

  static Integer[] PON_ARR = new Integer[]{0,1,6,8};
  static  Integer[] BON_ARR = new Integer[]{3};
  static  List<Integer> PON_LIST = Arrays.asList(PON_ARR);
  static  List<Integer> BON_LIST = Arrays.asList(BON_ARR);

  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int val = a - (int)(a/10)*10;
    
    if(PON_LIST.contains(val)){
      System.out.println("pon");
    }else if(BON_LIST.contains(val)){
      System.out.println("bon");
    }else{
      System.out.println("hon");
    }
  }
}