import java.util.*;

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

public class Main {
    public static void main(String[] args) throws Exception {
       Scanner sc = new Scanner(System.in);
       int N = sc.nextInt();
       String name;
       N = N%10;
       if(N==3){
           name="bon";
       }else if(N==0 || N==1 || N==6 || N==8){
           name = "pon";
       }else{
           name = "hon";
       }
       System.out.println(name);
       
        }
    
}
