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