import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		String ans;
		Scanner scn = new Scanner(System.in);
		String N = scn.nextLine();
		char n = N.charAt(N.length()-1);
		if(n == '3') {
			ans = "bon";
		}else if(n == '0' || n == '1' || n == '6' || n == '8') {
			ans = "pon";
		}else {
			ans = "hon";
		}
		System.out.print(ans);
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		String ans;
		Scanner scn = new Scanner(System.in);
		String N = scn.nextLine();
		char n = N.charAt(N.length()-1);
		if(n == '3') {
			ans = "bon";
		}else if(n == '0' || n == '1' || n == '6' || n == '8') {
			ans = "pon";
		}else {
			ans = "hon";
		}
		System.out.print(ans);
	}
} Main public static void main(String[] args) {
		String ans;
		Scanner scn = new Scanner(System.in);
		String N = scn.nextLine();
		char n = N.charAt(N.length()-1);
		if(n == '3') {
			ans = "bon";
		}else if(n == '0' || n == '1' || n == '6' || n == '8') {
			ans = "pon";
		}else {
			ans = "hon";
		}
		System.out.print(ans);
	} main {
		String ans;
		Scanner scn = new Scanner(System.in);
		String N = scn.nextLine();
		char n = N.charAt(N.length()-1);
		if(n == '3') {
			ans = "bon";
		}else if(n == '0' || n == '1' || n == '6' || n == '8') {
			ans = "pon";
		}else {
			ans = "hon";
		}
		System.out.print(ans);
	} String ans; ans Scanner scn = new Scanner(System.in); scn new Scanner(System.in) String N = scn.nextLine(); N scn.nextLine() scn.nextLine scn char n = N.charAt(N.length()-1); n N.charAt(N.length()-1) N.charAt N N.length()-1 N.length() N.length N 1 if(n == '3') {
			ans = "bon";
		}else if(n == '0' || n == '1' || n == '6' || n == '8') {
			ans = "pon";
		}else {
			ans = "hon";
		} n == '3' n '3' {
			ans = "bon";
		} ans = "bon" ans "bon" if(n == '0' || n == '1' || n == '6' || n == '8') {
			ans = "pon";
		}else {
			ans = "hon";
		} n == '0' || n == '1' || n == '6' || n == '8' n == '6' n == '0' || n == '1' || n == '6' || n == '8' n == '0' n '0' n == '1' n '1' n == '6' n '6' n == '8' n '8' {
			ans = "pon";
		} ans = "pon" ans "pon" {
			ans = "hon";
		} ans = "hon" ans "hon" System.out.print(ans) System.out.print System.out System System.out ans String[] args args public class Main {

	public static void main(String[] args) {
		String ans;
		Scanner scn = new Scanner(System.in);
		String N = scn.nextLine();
		char n = N.charAt(N.length()-1);
		if(n == '3') {
			ans = "bon";
		}else if(n == '0' || n == '1' || n == '6' || n == '8') {
			ans = "pon";
		}else {
			ans = "hon";
		}
		System.out.print(ans);
	}
} public class Main {

	public static void main(String[] args) {
		String ans;
		Scanner scn = new Scanner(System.in);
		String N = scn.nextLine();
		char n = N.charAt(N.length()-1);
		if(n == '3') {
			ans = "bon";
		}else if(n == '0' || n == '1' || n == '6' || n == '8') {
			ans = "pon";
		}else {
			ans = "hon";
		}
		System.out.print(ans);
	}
} Main
import java.util.Scanner;

public class Main {

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