import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String S =sc.next();
        String spt[] =S.split("");
        
        switch(spt[spt.length-1]){
            case "0":
                System.out.println("pon");
                break;
            case "1":
                System.out.println("pon");
                break;
            case "2":
                System.out.println("hon");
                break;
            case "3":
                System.out.println("bon");
                break;
            case "4":
                System.out.println("hon");
                break;
            case "5":
                System.out.println("hon");
                break;
            case "6":
                System.out.println("pon");
                break;
            case "7":
                System.out.println("hon");
                break;
            case "8":
                System.out.println("pon");
                break;
            case "9":
                System.out.println("hon");
                break;
                
            
        }
        
        
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String S =sc.next();
        String spt[] =S.split("");
        
        switch(spt[spt.length-1]){
            case "0":
                System.out.println("pon");
                break;
            case "1":
                System.out.println("pon");
                break;
            case "2":
                System.out.println("hon");
                break;
            case "3":
                System.out.println("bon");
                break;
            case "4":
                System.out.println("hon");
                break;
            case "5":
                System.out.println("hon");
                break;
            case "6":
                System.out.println("pon");
                break;
            case "7":
                System.out.println("hon");
                break;
            case "8":
                System.out.println("pon");
                break;
            case "9":
                System.out.println("hon");
                break;
                
            
        }
        
        
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String S =sc.next();
        String spt[] =S.split("");
        
        switch(spt[spt.length-1]){
            case "0":
                System.out.println("pon");
                break;
            case "1":
                System.out.println("pon");
                break;
            case "2":
                System.out.println("hon");
                break;
            case "3":
                System.out.println("bon");
                break;
            case "4":
                System.out.println("hon");
                break;
            case "5":
                System.out.println("hon");
                break;
            case "6":
                System.out.println("pon");
                break;
            case "7":
                System.out.println("hon");
                break;
            case "8":
                System.out.println("pon");
                break;
            case "9":
                System.out.println("hon");
                break;
                
            
        }
        
        
	} main {
		Scanner sc = new Scanner(System.in);
		String S =sc.next();
        String spt[] =S.split("");
        
        switch(spt[spt.length-1]){
            case "0":
                System.out.println("pon");
                break;
            case "1":
                System.out.println("pon");
                break;
            case "2":
                System.out.println("hon");
                break;
            case "3":
                System.out.println("bon");
                break;
            case "4":
                System.out.println("hon");
                break;
            case "5":
                System.out.println("hon");
                break;
            case "6":
                System.out.println("pon");
                break;
            case "7":
                System.out.println("hon");
                break;
            case "8":
                System.out.println("pon");
                break;
            case "9":
                System.out.println("hon");
                break;
                
            
        }
        
        
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S =sc.next(); S sc.next() sc.next sc String spt[] =S.split(""); spt S.split("") S.split S "" switch(spt[spt.length-1]){
            case "0":
                System.out.println("pon");
                break;
            case "1":
                System.out.println("pon");
                break;
            case "2":
                System.out.println("hon");
                break;
            case "3":
                System.out.println("bon");
                break;
            case "4":
                System.out.println("hon");
                break;
            case "5":
                System.out.println("hon");
                break;
            case "6":
                System.out.println("pon");
                break;
            case "7":
                System.out.println("hon");
                break;
            case "8":
                System.out.println("pon");
                break;
            case "9":
                System.out.println("hon");
                break;
                
            
        } spt[spt.length-1] spt spt.length-1 spt.length spt spt.length 1 case "0": "0" case "0": System.out.println("pon") System.out.println System.out System System.out "pon" break; case "1": "1" case "1": System.out.println("pon") System.out.println System.out System System.out "pon" break; case "2": "2" case "2": System.out.println("hon") System.out.println System.out System System.out "hon" break; case "3": "3" case "3": System.out.println("bon") System.out.println System.out System System.out "bon" break; case "4": "4" case "4": System.out.println("hon") System.out.println System.out System System.out "hon" break; case "5": "5" case "5": System.out.println("hon") System.out.println System.out System System.out "hon" break; case "6": "6" case "6": System.out.println("pon") System.out.println System.out System System.out "pon" break; case "7": "7" case "7": System.out.println("hon") System.out.println System.out System System.out "hon" break; case "8": "8" case "8": System.out.println("pon") System.out.println System.out System System.out "pon" break; case "9": "9" case "9": System.out.println("hon") System.out.println System.out System System.out "hon" break; String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String S =sc.next();
        String spt[] =S.split("");
        
        switch(spt[spt.length-1]){
            case "0":
                System.out.println("pon");
                break;
            case "1":
                System.out.println("pon");
                break;
            case "2":
                System.out.println("hon");
                break;
            case "3":
                System.out.println("bon");
                break;
            case "4":
                System.out.println("hon");
                break;
            case "5":
                System.out.println("hon");
                break;
            case "6":
                System.out.println("pon");
                break;
            case "7":
                System.out.println("hon");
                break;
            case "8":
                System.out.println("pon");
                break;
            case "9":
                System.out.println("hon");
                break;
                
            
        }
        
        
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String S =sc.next();
        String spt[] =S.split("");
        
        switch(spt[spt.length-1]){
            case "0":
                System.out.println("pon");
                break;
            case "1":
                System.out.println("pon");
                break;
            case "2":
                System.out.println("hon");
                break;
            case "3":
                System.out.println("bon");
                break;
            case "4":
                System.out.println("hon");
                break;
            case "5":
                System.out.println("hon");
                break;
            case "6":
                System.out.println("pon");
                break;
            case "7":
                System.out.println("hon");
                break;
            case "8":
                System.out.println("pon");
                break;
            case "9":
                System.out.println("hon");
                break;
                
            
        }
        
        
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String S =sc.next();
        String spt[] =S.split("");
        
        switch(spt[spt.length-1]){
            case "0":
                System.out.println("pon");
                break;
            case "1":
                System.out.println("pon");
                break;
            case "2":
                System.out.println("hon");
                break;
            case "3":
                System.out.println("bon");
                break;
            case "4":
                System.out.println("hon");
                break;
            case "5":
                System.out.println("hon");
                break;
            case "6":
                System.out.println("pon");
                break;
            case "7":
                System.out.println("hon");
                break;
            case "8":
                System.out.println("pon");
                break;
            case "9":
                System.out.println("hon");
                break;
                
            
        }
        
        
	}
}