import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int x;
		int amari;
		x =N/10;
		amari=N-(10*x);
		if(amari==2||amari==4||amari==5||amari==7||amari==9) {
			System.out.println("hon");
		}else if(amari==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 scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int x;
		int amari;
		x =N/10;
		amari=N-(10*x);
		if(amari==2||amari==4||amari==5||amari==7||amari==9) {
			System.out.println("hon");
		}else if(amari==3) {
			System.out.println("bon");
		}else {
			System.out.println("pon");
		}
	}

} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int x;
		int amari;
		x =N/10;
		amari=N-(10*x);
		if(amari==2||amari==4||amari==5||amari==7||amari==9) {
			System.out.println("hon");
		}else if(amari==3) {
			System.out.println("bon");
		}else {
			System.out.println("pon");
		}
	} main {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int x;
		int amari;
		x =N/10;
		amari=N-(10*x);
		if(amari==2||amari==4||amari==5||amari==7||amari==9) {
			System.out.println("hon");
		}else if(amari==3) {
			System.out.println("bon");
		}else {
			System.out.println("pon");
		}
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner int x; x int amari; amari x =N/10 x N/10 N 10 amari=N-(10*x) amari N-(10*x) N (10*x) 10 x if(amari==2||amari==4||amari==5||amari==7||amari==9) {
			System.out.println("hon");
		}else if(amari==3) {
			System.out.println("bon");
		}else {
			System.out.println("pon");
		} amari==2||amari==4||amari==5||amari==7||amari==9 amari==7 amari==5 amari==2||amari==4||amari==5||amari==7||amari==9 amari==2 amari 2 amari==4 amari 4 amari==5 amari 5 amari==7 amari 7 amari==9 amari 9 {
			System.out.println("hon");
		} System.out.println("hon") System.out.println System.out System System.out "hon" if(amari==3) {
			System.out.println("bon");
		}else {
			System.out.println("pon");
		} amari==3 amari 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 scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int x;
		int amari;
		x =N/10;
		amari=N-(10*x);
		if(amari==2||amari==4||amari==5||amari==7||amari==9) {
			System.out.println("hon");
		}else if(amari==3) {
			System.out.println("bon");
		}else {
			System.out.println("pon");
		}
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int x;
		int amari;
		x =N/10;
		amari=N-(10*x);
		if(amari==2||amari==4||amari==5||amari==7||amari==9) {
			System.out.println("hon");
		}else if(amari==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 scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		int x;
		int amari;
		x =N/10;
		amari=N-(10*x);
		if(amari==2||amari==4||amari==5||amari==7||amari==9) {
			System.out.println("hon");
		}else if(amari==3) {
			System.out.println("bon");
		}else {
			System.out.println("pon");
		}
	}

}
