import java.util.*;

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

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