import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
      String n = sc.next();
      String[] ns = n.split("");
      if(ns[ns.length - 1].equals("2") || ns[ns.length - 1].equals("4") ||
        ns[ns.length - 1].equals("5") || ns[ns.length - 1].equals("7") || 
        ns[ns.length - 1].equals("9")){
		System.out.println("hon");
      } else if(ns[ns.length - 1].equals("3")){
      	System.out.println("bon");
      } else {
      	System.out.println("pon");
      }
      
      
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
      String n = sc.next();
      String[] ns = n.split("");
      if(ns[ns.length - 1].equals("2") || ns[ns.length - 1].equals("4") ||
        ns[ns.length - 1].equals("5") || ns[ns.length - 1].equals("7") || 
        ns[ns.length - 1].equals("9")){
		System.out.println("hon");
      } else if(ns[ns.length - 1].equals("3")){
      	System.out.println("bon");
      } else {
      	System.out.println("pon");
      }
      
      
	}
} Main public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
      String n = sc.next();
      String[] ns = n.split("");
      if(ns[ns.length - 1].equals("2") || ns[ns.length - 1].equals("4") ||
        ns[ns.length - 1].equals("5") || ns[ns.length - 1].equals("7") || 
        ns[ns.length - 1].equals("9")){
		System.out.println("hon");
      } else if(ns[ns.length - 1].equals("3")){
      	System.out.println("bon");
      } else {
      	System.out.println("pon");
      }
      
      
	} main {
      Scanner sc = new Scanner(System.in);
      String n = sc.next();
      String[] ns = n.split("");
      if(ns[ns.length - 1].equals("2") || ns[ns.length - 1].equals("4") ||
        ns[ns.length - 1].equals("5") || ns[ns.length - 1].equals("7") || 
        ns[ns.length - 1].equals("9")){
		System.out.println("hon");
      } else if(ns[ns.length - 1].equals("3")){
      	System.out.println("bon");
      } else {
      	System.out.println("pon");
      }
      
      
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String n = sc.next(); n sc.next() sc.next sc String[] ns = n.split(""); ns n.split("") n.split n "" if(ns[ns.length - 1].equals("2") || ns[ns.length - 1].equals("4") ||
        ns[ns.length - 1].equals("5") || ns[ns.length - 1].equals("7") || 
        ns[ns.length - 1].equals("9")){
		System.out.println("hon");
      } else if(ns[ns.length - 1].equals("3")){
      	System.out.println("bon");
      } else {
      	System.out.println("pon");
      } ns[ns.length - 1].equals("2") || ns[ns.length - 1].equals("4") ||
        ns[ns.length - 1].equals("5") || ns[ns.length - 1].equals("7") || 
        ns[ns.length - 1].equals("9") ns[ns.length - 1].equals("7") ns[ns.length - 1].equals("5") ns[ns.length - 1].equals("2") || ns[ns.length - 1].equals("4") ||
        ns[ns.length - 1].equals("5") || ns[ns.length - 1].equals("7") || 
        ns[ns.length - 1].equals("9") ns[ns.length - 1].equals("2") ns[ns.length - 1].equals ns[ns.length - 1] ns ns.length - 1 ns.length ns ns.length 1 "2" ns[ns.length - 1].equals("4") ns[ns.length - 1].equals ns[ns.length - 1] ns ns.length - 1 ns.length ns ns.length 1 "4" ns[ns.length - 1].equals("5") ns[ns.length - 1].equals ns[ns.length - 1] ns ns.length - 1 ns.length ns ns.length 1 "5" ns[ns.length - 1].equals("7") ns[ns.length - 1].equals ns[ns.length - 1] ns ns.length - 1 ns.length ns ns.length 1 "7" ns[ns.length - 1].equals("9") ns[ns.length - 1].equals ns[ns.length - 1] ns ns.length - 1 ns.length ns ns.length 1 "9" {
		System.out.println("hon");
      } System.out.println("hon") System.out.println System.out System System.out "hon" if(ns[ns.length - 1].equals("3")){
      	System.out.println("bon");
      } else {
      	System.out.println("pon");
      } ns[ns.length - 1].equals("3") ns[ns.length - 1].equals ns[ns.length - 1] ns ns.length - 1 ns.length ns ns.length 1 "3" {
      	System.out.println("bon");
      } System.out.println("bon") System.out.println System.out System System.out "bon" {
      	System.out.println("pon");
      } System.out.println("pon") System.out.println System.out System System.out "pon" String[] args args public class Main {
	public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
      String n = sc.next();
      String[] ns = n.split("");
      if(ns[ns.length - 1].equals("2") || ns[ns.length - 1].equals("4") ||
        ns[ns.length - 1].equals("5") || ns[ns.length - 1].equals("7") || 
        ns[ns.length - 1].equals("9")){
		System.out.println("hon");
      } else if(ns[ns.length - 1].equals("3")){
      	System.out.println("bon");
      } else {
      	System.out.println("pon");
      }
      
      
	}
} public class Main {
	public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
      String n = sc.next();
      String[] ns = n.split("");
      if(ns[ns.length - 1].equals("2") || ns[ns.length - 1].equals("4") ||
        ns[ns.length - 1].equals("5") || ns[ns.length - 1].equals("7") || 
        ns[ns.length - 1].equals("9")){
		System.out.println("hon");
      } else if(ns[ns.length - 1].equals("3")){
      	System.out.println("bon");
      } else {
      	System.out.println("pon");
      }
      
      
	}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
      String n = sc.next();
      String[] ns = n.split("");
      if(ns[ns.length - 1].equals("2") || ns[ns.length - 1].equals("4") ||
        ns[ns.length - 1].equals("5") || ns[ns.length - 1].equals("7") || 
        ns[ns.length - 1].equals("9")){
		System.out.println("hon");
      } else if(ns[ns.length - 1].equals("3")){
      	System.out.println("bon");
      } else {
      	System.out.println("pon");
      }
      
      
	}
}