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