import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int b = n%10;
    if (b==3){
      System.out.println("bon");
      return;
    }
    if ((b==0)||(b==1)||(b==6)||(b==8)){
      System.out.println("pon");
      return;
    }
    System.out.println("hon");
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int b = n%10;
    if (b==3){
      System.out.println("bon");
      return;
    }
    if ((b==0)||(b==1)||(b==6)||(b==8)){
      System.out.println("pon");
      return;
    }
    System.out.println("hon");
  }
} Main public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int b = n%10;
    if (b==3){
      System.out.println("bon");
      return;
    }
    if ((b==0)||(b==1)||(b==6)||(b==8)){
      System.out.println("pon");
      return;
    }
    System.out.println("hon");
  } main {
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int b = n%10;
    if (b==3){
      System.out.println("bon");
      return;
    }
    if ((b==0)||(b==1)||(b==6)||(b==8)){
      System.out.println("pon");
      return;
    }
    System.out.println("hon");
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int b = n%10; b n%10 n 10 if (b==3){
      System.out.println("bon");
      return;
    } b==3 b 3 {
      System.out.println("bon");
      return;
    } System.out.println("bon") System.out.println System.out System System.out "bon" return; if ((b==0)||(b==1)||(b==6)||(b==8)){
      System.out.println("pon");
      return;
    } (b==0)||(b==1)||(b==6)||(b==8) (b==6) (b==0)||(b==1)||(b==6)||(b==8) (b==0) b 0 (b==1) b 1 (b==6) b 6 (b==8) b 8 {
      System.out.println("pon");
      return;
    } System.out.println("pon") System.out.println System.out System System.out "pon" return; 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 scan = new Scanner(System.in);
    int n = scan.nextInt();
    int b = n%10;
    if (b==3){
      System.out.println("bon");
      return;
    }
    if ((b==0)||(b==1)||(b==6)||(b==8)){
      System.out.println("pon");
      return;
    }
    System.out.println("hon");
  }
} public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int b = n%10;
    if (b==3){
      System.out.println("bon");
      return;
    }
    if ((b==0)||(b==1)||(b==6)||(b==8)){
      System.out.println("pon");
      return;
    }
    System.out.println("hon");
  }
} Main
import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int b = n%10;
    if (b==3){
      System.out.println("bon");
      return;
    }
    if ((b==0)||(b==1)||(b==6)||(b==8)){
      System.out.println("pon");
      return;
    }
    System.out.println("hon");
  }
}
