import java.util.*;

class Main{


     public static void main(String args[]){
     
       Scanner in = new Scanner(System.in);
       String s = in.next();
       char c= s.charAt(s.length()-1);
       if(c=='3'){
       System.out.println("bon");
       } else if(c=='1' || c=='0'|| c=='6' || c=='8'){
                System.out.println("pon");

       } else{
                         System.out.println("hon");

       }
     }

} import java.util.*; util.* java class Main{


     public static void main(String args[]){
     
       Scanner in = new Scanner(System.in);
       String s = in.next();
       char c= s.charAt(s.length()-1);
       if(c=='3'){
       System.out.println("bon");
       } else if(c=='1' || c=='0'|| c=='6' || c=='8'){
                System.out.println("pon");

       } else{
                         System.out.println("hon");

       }
     }

} Main public static void main(String args[]){
     
       Scanner in = new Scanner(System.in);
       String s = in.next();
       char c= s.charAt(s.length()-1);
       if(c=='3'){
       System.out.println("bon");
       } else if(c=='1' || c=='0'|| c=='6' || c=='8'){
                System.out.println("pon");

       } else{
                         System.out.println("hon");

       }
     } main {
     
       Scanner in = new Scanner(System.in);
       String s = in.next();
       char c= s.charAt(s.length()-1);
       if(c=='3'){
       System.out.println("bon");
       } else if(c=='1' || c=='0'|| c=='6' || c=='8'){
                System.out.println("pon");

       } else{
                         System.out.println("hon");

       }
     } Scanner in = new Scanner(System.in); in new Scanner(System.in) String s = in.next(); s in.next() in.next in char c= s.charAt(s.length()-1); c s.charAt(s.length()-1) s.charAt s s.length()-1 s.length() s.length s 1 if(c=='3'){
       System.out.println("bon");
       } else if(c=='1' || c=='0'|| c=='6' || c=='8'){
                System.out.println("pon");

       } else{
                         System.out.println("hon");

       } c=='3' c '3' {
       System.out.println("bon");
       } System.out.println("bon") System.out.println System.out System System.out "bon" if(c=='1' || c=='0'|| c=='6' || c=='8'){
                System.out.println("pon");

       } else{
                         System.out.println("hon");

       } c=='1' || c=='0'|| c=='6' || c=='8' c=='6' c=='1' || c=='0'|| c=='6' || c=='8' c=='1' c '1' c=='0' c '0' c=='6' c '6' c=='8' c '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
import java.util.*;

class Main{


     public static void main(String args[]){
     
       Scanner in = new Scanner(System.in);
       String s = in.next();
       char c= s.charAt(s.length()-1);
       if(c=='3'){
       System.out.println("bon");
       } else if(c=='1' || c=='0'|| c=='6' || c=='8'){
                System.out.println("pon");

       } else{
                         System.out.println("hon");

       }
     }

}
