import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String s=scan.nextLine();
		int n=s.length();
		if(s.charAt(n-1)=='6' || s.charAt(n-1)=='0'|| s.charAt(n-1)=='1' || s.charAt(n-1)=='8') System.out.println("pon");
		else if(s.charAt(n-1)=='3') System.out.println("bon");
		else System.out.println("hon");
		
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String s=scan.nextLine();
		int n=s.length();
		if(s.charAt(n-1)=='6' || s.charAt(n-1)=='0'|| s.charAt(n-1)=='1' || s.charAt(n-1)=='8') System.out.println("pon");
		else if(s.charAt(n-1)=='3') System.out.println("bon");
		else System.out.println("hon");
		
	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String s=scan.nextLine();
		int n=s.length();
		if(s.charAt(n-1)=='6' || s.charAt(n-1)=='0'|| s.charAt(n-1)=='1' || s.charAt(n-1)=='8') System.out.println("pon");
		else if(s.charAt(n-1)=='3') System.out.println("bon");
		else System.out.println("hon");
		
	} main {
		Scanner scan = new Scanner(System.in);
		String s=scan.nextLine();
		int n=s.length();
		if(s.charAt(n-1)=='6' || s.charAt(n-1)=='0'|| s.charAt(n-1)=='1' || s.charAt(n-1)=='8') System.out.println("pon");
		else if(s.charAt(n-1)=='3') System.out.println("bon");
		else System.out.println("hon");
		
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String s=scan.nextLine(); s scan.nextLine() scan.nextLine scan int n=s.length(); n s.length() s.length s if(s.charAt(n-1)=='6' || s.charAt(n-1)=='0'|| s.charAt(n-1)=='1' || s.charAt(n-1)=='8') System.out.println("pon");
		else if(s.charAt(n-1)=='3') System.out.println("bon");
		else System.out.println("hon"); s.charAt(n-1)=='6' || s.charAt(n-1)=='0'|| s.charAt(n-1)=='1' || s.charAt(n-1)=='8' s.charAt(n-1)=='1' s.charAt(n-1)=='6' || s.charAt(n-1)=='0'|| s.charAt(n-1)=='1' || s.charAt(n-1)=='8' s.charAt(n-1)=='6' s.charAt(n-1) s.charAt s n-1 n 1 '6' s.charAt(n-1)=='0' s.charAt(n-1) s.charAt s n-1 n 1 '0' s.charAt(n-1)=='1' s.charAt(n-1) s.charAt s n-1 n 1 '1' s.charAt(n-1)=='8' s.charAt(n-1) s.charAt s n-1 n 1 '8' System.out.println("pon") System.out.println System.out System System.out "pon" if(s.charAt(n-1)=='3') System.out.println("bon");
		else System.out.println("hon"); s.charAt(n-1)=='3' s.charAt(n-1) s.charAt s n-1 n 1 '3' System.out.println("bon") System.out.println System.out System System.out "bon" 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 scan = new Scanner(System.in);
		String s=scan.nextLine();
		int n=s.length();
		if(s.charAt(n-1)=='6' || s.charAt(n-1)=='0'|| s.charAt(n-1)=='1' || s.charAt(n-1)=='8') System.out.println("pon");
		else if(s.charAt(n-1)=='3') System.out.println("bon");
		else System.out.println("hon");
		
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String s=scan.nextLine();
		int n=s.length();
		if(s.charAt(n-1)=='6' || s.charAt(n-1)=='0'|| s.charAt(n-1)=='1' || s.charAt(n-1)=='8') System.out.println("pon");
		else if(s.charAt(n-1)=='3') System.out.println("bon");
		else System.out.println("hon");
		
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String s=scan.nextLine();
		int n=s.length();
		if(s.charAt(n-1)=='6' || s.charAt(n-1)=='0'|| s.charAt(n-1)=='1' || s.charAt(n-1)=='8') System.out.println("pon");
		else if(s.charAt(n-1)=='3') System.out.println("bon");
		else System.out.println("hon");
		
	}

}
