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