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