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