import java.util.*;
import java.io.*;
import java.nio.file.Files;
import java.nio.charset.StandardCharsets;
//System.out.println();
public class Main{
   String op(int n){

      if(n%10==3){
         return "bon";
      }else if(n%10==0||n%10==1||n%10==6||n%10==8){
         return "pon";
      }else{
         return "hon";
      }
   }




   public static void main(String[] args)  throws IOException {
      // Use the Scanner class
      
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));  
          
        while(br.ready()){
int t = Integer.parseInt(br.readLine());  
          
        // String Buffer to store answer 
        StringBuffer sb = new StringBuffer(); 
       Main obj = new Main();
        // One by one run for all input test cases  
        
          
        System.out.println(obj.op(t)); 
       }
return;
}
} import java.util.*; util.* java import java.io.*; io.* java import java.nio.file.Files; Files java.nio.file import java.nio.charset.StandardCharsets; StandardCharsets java.nio.charset public class Main{
   String op(int n){

      if(n%10==3){
         return "bon";
      }else if(n%10==0||n%10==1||n%10==6||n%10==8){
         return "pon";
      }else{
         return "hon";
      }
   }




   public static void main(String[] args)  throws IOException {
      // Use the Scanner class
      
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));  
          
        while(br.ready()){
int t = Integer.parseInt(br.readLine());  
          
        // String Buffer to store answer 
        StringBuffer sb = new StringBuffer(); 
       Main obj = new Main();
        // One by one run for all input test cases  
        
          
        System.out.println(obj.op(t)); 
       }
return;
}
} Main String op(int n){

      if(n%10==3){
         return "bon";
      }else if(n%10==0||n%10==1||n%10==6||n%10==8){
         return "pon";
      }else{
         return "hon";
      }
   } op {

      if(n%10==3){
         return "bon";
      }else if(n%10==0||n%10==1||n%10==6||n%10==8){
         return "pon";
      }else{
         return "hon";
      }
   } if(n%10==3){
         return "bon";
      }else if(n%10==0||n%10==1||n%10==6||n%10==8){
         return "pon";
      }else{
         return "hon";
      } n%10==3 n%10 n 10 3 {
         return "bon";
      } return "bon"; "bon" if(n%10==0||n%10==1||n%10==6||n%10==8){
         return "pon";
      }else{
         return "hon";
      } n%10==0||n%10==1||n%10==6||n%10==8 n%10==6 n%10==0||n%10==1||n%10==6||n%10==8 n%10==0 n%10 n 10 0 n%10==1 n%10 n 10 1 n%10==6 n%10 n 10 6 n%10==8 n%10 n 10 8 {
         return "pon";
      } return "pon"; "pon" {
         return "hon";
      } return "hon"; "hon" int n n public static void main(String[] args)  throws IOException {
      // Use the Scanner class
      
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));  
          
        while(br.ready()){
int t = Integer.parseInt(br.readLine());  
          
        // String Buffer to store answer 
        StringBuffer sb = new StringBuffer(); 
       Main obj = new Main();
        // One by one run for all input test cases  
        
          
        System.out.println(obj.op(t)); 
       }
return;
} main {
      // Use the Scanner class
      
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));  
          
        while(br.ready()){
int t = Integer.parseInt(br.readLine());  
          
        // String Buffer to store answer 
        StringBuffer sb = new StringBuffer(); 
       Main obj = new Main();
        // One by one run for all input test cases  
        
          
        System.out.println(obj.op(t)); 
       }
return;
} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) while(br.ready()){
int t = Integer.parseInt(br.readLine());  
          
        // String Buffer to store answer 
        StringBuffer sb = new StringBuffer(); 
       Main obj = new Main();
        // One by one run for all input test cases  
        
          
        System.out.println(obj.op(t)); 
       } br.ready() br.ready br {
int t = Integer.parseInt(br.readLine());  
          
        // String Buffer to store answer 
        StringBuffer sb = new StringBuffer(); 
       Main obj = new Main();
        // One by one run for all input test cases  
        
          
        System.out.println(obj.op(t)); 
       } int t = Integer.parseInt(br.readLine()); t Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br StringBuffer sb = new StringBuffer(); sb new StringBuffer() Main obj = new Main(); obj new Main() System.out.println(obj.op(t)) System.out.println System.out System System.out obj.op(t) obj.op obj t return; String[] args args public class Main{
   String op(int n){

      if(n%10==3){
         return "bon";
      }else if(n%10==0||n%10==1||n%10==6||n%10==8){
         return "pon";
      }else{
         return "hon";
      }
   }




   public static void main(String[] args)  throws IOException {
      // Use the Scanner class
      
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));  
          
        while(br.ready()){
int t = Integer.parseInt(br.readLine());  
          
        // String Buffer to store answer 
        StringBuffer sb = new StringBuffer(); 
       Main obj = new Main();
        // One by one run for all input test cases  
        
          
        System.out.println(obj.op(t)); 
       }
return;
}
} public class Main{
   String op(int n){

      if(n%10==3){
         return "bon";
      }else if(n%10==0||n%10==1||n%10==6||n%10==8){
         return "pon";
      }else{
         return "hon";
      }
   }




   public static void main(String[] args)  throws IOException {
      // Use the Scanner class
      
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));  
          
        while(br.ready()){
int t = Integer.parseInt(br.readLine());  
          
        // String Buffer to store answer 
        StringBuffer sb = new StringBuffer(); 
       Main obj = new Main();
        // One by one run for all input test cases  
        
          
        System.out.println(obj.op(t)); 
       }
return;
}
} Main
import java.util.*;
import java.io.*;
import java.nio.file.Files;
import java.nio.charset.StandardCharsets;
//System.out.println();
public class Main{
   String op(int n){

      if(n%10==3){
         return "bon";
      }else if(n%10==0||n%10==1||n%10==6||n%10==8){
         return "pon";
      }else{
         return "hon";
      }
   }




   public static void main(String[] args)  throws IOException {
      // Use the Scanner class
      
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));  
          
        while(br.ready()){
int t = Integer.parseInt(br.readLine());  
          
        // String Buffer to store answer 
        StringBuffer sb = new StringBuffer(); 
       Main obj = new Main();
        // One by one run for all input test cases  
        
          
        System.out.println(obj.op(t)); 
       }
return;
}
}