import java.util.Scanner;


public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String n = scan.next();
		char a = n.charAt(n.length()-1);

		String ans = "hon";
		if(a == '3') {
			ans = "bon";
		}else if(a == '0' || a == '1' || a == '6' || a == '8') {
			ans = "pon";
		}

		System.out.println(ans);


	}

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

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String n = scan.next();
		char a = n.charAt(n.length()-1);

		String ans = "hon";
		if(a == '3') {
			ans = "bon";
		}else if(a == '0' || a == '1' || a == '6' || a == '8') {
			ans = "pon";
		}

		System.out.println(ans);


	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String n = scan.next();
		char a = n.charAt(n.length()-1);

		String ans = "hon";
		if(a == '3') {
			ans = "bon";
		}else if(a == '0' || a == '1' || a == '6' || a == '8') {
			ans = "pon";
		}

		System.out.println(ans);


	} main {
		Scanner scan = new Scanner(System.in);
		String n = scan.next();
		char a = n.charAt(n.length()-1);

		String ans = "hon";
		if(a == '3') {
			ans = "bon";
		}else if(a == '0' || a == '1' || a == '6' || a == '8') {
			ans = "pon";
		}

		System.out.println(ans);


	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String n = scan.next(); n scan.next() scan.next scan char a = n.charAt(n.length()-1); a n.charAt(n.length()-1) n.charAt n n.length()-1 n.length() n.length n 1 String ans = "hon"; ans "hon" if(a == '3') {
			ans = "bon";
		}else if(a == '0' || a == '1' || a == '6' || a == '8') {
			ans = "pon";
		} a == '3' a '3' {
			ans = "bon";
		} ans = "bon" ans "bon" if(a == '0' || a == '1' || a == '6' || a == '8') {
			ans = "pon";
		} a == '0' || a == '1' || a == '6' || a == '8' a == '6' a == '0' || a == '1' || a == '6' || a == '8' a == '0' a '0' a == '1' a '1' a == '6' a '6' a == '8' a '8' {
			ans = "pon";
		} ans = "pon" ans "pon" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String n = scan.next();
		char a = n.charAt(n.length()-1);

		String ans = "hon";
		if(a == '3') {
			ans = "bon";
		}else if(a == '0' || a == '1' || a == '6' || a == '8') {
			ans = "pon";
		}

		System.out.println(ans);


	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String n = scan.next();
		char a = n.charAt(n.length()-1);

		String ans = "hon";
		if(a == '3') {
			ans = "bon";
		}else if(a == '0' || a == '1' || a == '6' || a == '8') {
			ans = "pon";
		}

		System.out.println(ans);


	}

} Main
import java.util.Scanner;


public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String n = scan.next();
		char a = n.charAt(n.length()-1);

		String ans = "hon";
		if(a == '3') {
			ans = "bon";
		}else if(a == '0' || a == '1' || a == '6' || a == '8') {
			ans = "pon";
		}

		System.out.println(ans);


	}

}