import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		int num = String.valueOf(n).length();
		int waru = 1;
		int ans = 0;

		if(num == 1) {
			waru = 1;
		}else if(num == 2) {
			waru = 10;
		}else {
			waru = 100;
		}

		if(String.valueOf(n).length() == 1) {
			ans = n;
		}else if(String.valueOf(n).length() == 2){
			ans = n % waru;
		}else {
			ans = n % waru;
			ans %= 10;
		}

		if(ans == 2 || ans == 4 || ans == 5 || ans == 7 || ans == 9) {
			System.out.println("hon");
		}else if(ans == 0 || ans == 1 || ans == 6 || ans == 8) {
			System.out.println("pon");
		}else {
			System.out.println("bon");
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		int num = String.valueOf(n).length();
		int waru = 1;
		int ans = 0;

		if(num == 1) {
			waru = 1;
		}else if(num == 2) {
			waru = 10;
		}else {
			waru = 100;
		}

		if(String.valueOf(n).length() == 1) {
			ans = n;
		}else if(String.valueOf(n).length() == 2){
			ans = n % waru;
		}else {
			ans = n % waru;
			ans %= 10;
		}

		if(ans == 2 || ans == 4 || ans == 5 || ans == 7 || ans == 9) {
			System.out.println("hon");
		}else if(ans == 0 || ans == 1 || ans == 6 || ans == 8) {
			System.out.println("pon");
		}else {
			System.out.println("bon");
		}
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		int num = String.valueOf(n).length();
		int waru = 1;
		int ans = 0;

		if(num == 1) {
			waru = 1;
		}else if(num == 2) {
			waru = 10;
		}else {
			waru = 100;
		}

		if(String.valueOf(n).length() == 1) {
			ans = n;
		}else if(String.valueOf(n).length() == 2){
			ans = n % waru;
		}else {
			ans = n % waru;
			ans %= 10;
		}

		if(ans == 2 || ans == 4 || ans == 5 || ans == 7 || ans == 9) {
			System.out.println("hon");
		}else if(ans == 0 || ans == 1 || ans == 6 || ans == 8) {
			System.out.println("pon");
		}else {
			System.out.println("bon");
		}
	} main {
		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		int num = String.valueOf(n).length();
		int waru = 1;
		int ans = 0;

		if(num == 1) {
			waru = 1;
		}else if(num == 2) {
			waru = 10;
		}else {
			waru = 100;
		}

		if(String.valueOf(n).length() == 1) {
			ans = n;
		}else if(String.valueOf(n).length() == 2){
			ans = n % waru;
		}else {
			ans = n % waru;
			ans %= 10;
		}

		if(ans == 2 || ans == 4 || ans == 5 || ans == 7 || ans == 9) {
			System.out.println("hon");
		}else if(ans == 0 || ans == 1 || ans == 6 || ans == 8) {
			System.out.println("pon");
		}else {
			System.out.println("bon");
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int num = String.valueOf(n).length(); num String.valueOf(n).length() String.valueOf(n).length String.valueOf(n) String.valueOf String n int waru = 1; waru 1 int ans = 0; ans 0 if(num == 1) {
			waru = 1;
		}else if(num == 2) {
			waru = 10;
		}else {
			waru = 100;
		} num == 1 num 1 {
			waru = 1;
		} waru = 1 waru 1 if(num == 2) {
			waru = 10;
		}else {
			waru = 100;
		} num == 2 num 2 {
			waru = 10;
		} waru = 10 waru 10 {
			waru = 100;
		} waru = 100 waru 100 if(String.valueOf(n).length() == 1) {
			ans = n;
		}else if(String.valueOf(n).length() == 2){
			ans = n % waru;
		}else {
			ans = n % waru;
			ans %= 10;
		} String.valueOf(n).length() == 1 String.valueOf(n).length() String.valueOf(n).length String.valueOf(n) String.valueOf String n 1 {
			ans = n;
		} ans = n ans n if(String.valueOf(n).length() == 2){
			ans = n % waru;
		}else {
			ans = n % waru;
			ans %= 10;
		} String.valueOf(n).length() == 2 String.valueOf(n).length() String.valueOf(n).length String.valueOf(n) String.valueOf String n 2 {
			ans = n % waru;
		} ans = n % waru ans n % waru n waru {
			ans = n % waru;
			ans %= 10;
		} ans = n % waru ans n % waru n waru ans %= 10 ans 10 if(ans == 2 || ans == 4 || ans == 5 || ans == 7 || ans == 9) {
			System.out.println("hon");
		}else if(ans == 0 || ans == 1 || ans == 6 || ans == 8) {
			System.out.println("pon");
		}else {
			System.out.println("bon");
		} ans == 2 || ans == 4 || ans == 5 || ans == 7 || ans == 9 ans == 7 ans == 5 ans == 2 || ans == 4 || ans == 5 || ans == 7 || ans == 9 ans == 2 ans 2 ans == 4 ans 4 ans == 5 ans 5 ans == 7 ans 7 ans == 9 ans 9 {
			System.out.println("hon");
		} System.out.println("hon") System.out.println System.out System System.out "hon" if(ans == 0 || ans == 1 || ans == 6 || ans == 8) {
			System.out.println("pon");
		}else {
			System.out.println("bon");
		} ans == 0 || ans == 1 || ans == 6 || ans == 8 ans == 6 ans == 0 || ans == 1 || ans == 6 || ans == 8 ans == 0 ans 0 ans == 1 ans 1 ans == 6 ans 6 ans == 8 ans 8 {
			System.out.println("pon");
		} System.out.println("pon") System.out.println System.out System System.out "pon" {
			System.out.println("bon");
		} System.out.println("bon") System.out.println System.out System System.out "bon" String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		int num = String.valueOf(n).length();
		int waru = 1;
		int ans = 0;

		if(num == 1) {
			waru = 1;
		}else if(num == 2) {
			waru = 10;
		}else {
			waru = 100;
		}

		if(String.valueOf(n).length() == 1) {
			ans = n;
		}else if(String.valueOf(n).length() == 2){
			ans = n % waru;
		}else {
			ans = n % waru;
			ans %= 10;
		}

		if(ans == 2 || ans == 4 || ans == 5 || ans == 7 || ans == 9) {
			System.out.println("hon");
		}else if(ans == 0 || ans == 1 || ans == 6 || ans == 8) {
			System.out.println("pon");
		}else {
			System.out.println("bon");
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		int num = String.valueOf(n).length();
		int waru = 1;
		int ans = 0;

		if(num == 1) {
			waru = 1;
		}else if(num == 2) {
			waru = 10;
		}else {
			waru = 100;
		}

		if(String.valueOf(n).length() == 1) {
			ans = n;
		}else if(String.valueOf(n).length() == 2){
			ans = n % waru;
		}else {
			ans = n % waru;
			ans %= 10;
		}

		if(ans == 2 || ans == 4 || ans == 5 || ans == 7 || ans == 9) {
			System.out.println("hon");
		}else if(ans == 0 || ans == 1 || ans == 6 || ans == 8) {
			System.out.println("pon");
		}else {
			System.out.println("bon");
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		int num = String.valueOf(n).length();
		int waru = 1;
		int ans = 0;

		if(num == 1) {
			waru = 1;
		}else if(num == 2) {
			waru = 10;
		}else {
			waru = 100;
		}

		if(String.valueOf(n).length() == 1) {
			ans = n;
		}else if(String.valueOf(n).length() == 2){
			ans = n % waru;
		}else {
			ans = n % waru;
			ans %= 10;
		}

		if(ans == 2 || ans == 4 || ans == 5 || ans == 7 || ans == 9) {
			System.out.println("hon");
		}else if(ans == 0 || ans == 1 || ans == 6 || ans == 8) {
			System.out.println("pon");
		}else {
			System.out.println("bon");
		}
	}
}
