import java.io.InputStream;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		new Main().execute(System.in);
	}

	public void execute(InputStream in) {
		Scanner sc = new Scanner(in);
		int n = sc.nextInt();

		String s = "";
		n = n % 10;
		switch (n) {
		case 2:
		case 4:
		case 5:
		case 7:
		case 9:
			s = "hon";
			break;
		case 0:
		case 1:
		case 6:
		case 8:
			s = "pon";
			break;
		case 3:
			s = "bon";
			break;
		}

		System.out.println(s);
		sc.close();
	}
} import java.io.InputStream; InputStream java.io import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		new Main().execute(System.in);
	}

	public void execute(InputStream in) {
		Scanner sc = new Scanner(in);
		int n = sc.nextInt();

		String s = "";
		n = n % 10;
		switch (n) {
		case 2:
		case 4:
		case 5:
		case 7:
		case 9:
			s = "hon";
			break;
		case 0:
		case 1:
		case 6:
		case 8:
			s = "pon";
			break;
		case 3:
			s = "bon";
			break;
		}

		System.out.println(s);
		sc.close();
	}
} Main public static void main(String[] args) {
		new Main().execute(System.in);
	} main {
		new Main().execute(System.in);
	} new Main().execute(System.in) new Main().execute new Main() System.in System System.in String[] args args public void execute(InputStream in) {
		Scanner sc = new Scanner(in);
		int n = sc.nextInt();

		String s = "";
		n = n % 10;
		switch (n) {
		case 2:
		case 4:
		case 5:
		case 7:
		case 9:
			s = "hon";
			break;
		case 0:
		case 1:
		case 6:
		case 8:
			s = "pon";
			break;
		case 3:
			s = "bon";
			break;
		}

		System.out.println(s);
		sc.close();
	} execute {
		Scanner sc = new Scanner(in);
		int n = sc.nextInt();

		String s = "";
		n = n % 10;
		switch (n) {
		case 2:
		case 4:
		case 5:
		case 7:
		case 9:
			s = "hon";
			break;
		case 0:
		case 1:
		case 6:
		case 8:
			s = "pon";
			break;
		case 3:
			s = "bon";
			break;
		}

		System.out.println(s);
		sc.close();
	} Scanner sc = new Scanner(in); sc new Scanner(in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc String s = ""; s "" n = n % 10 n n % 10 n 10 switch (n) {
		case 2:
		case 4:
		case 5:
		case 7:
		case 9:
			s = "hon";
			break;
		case 0:
		case 1:
		case 6:
		case 8:
			s = "pon";
			break;
		case 3:
			s = "bon";
			break;
		} n case 2: 2 case 2: case 4: 4 case 4: case 5: 5 case 5: case 7: 7 case 7: case 9: 9 case 9: s = "hon" s "hon" break; case 0: 0 case 0: case 1: 1 case 1: case 6: 6 case 6: case 8: 8 case 8: s = "pon" s "pon" break; case 3: 3 case 3: s = "bon" s "bon" break; System.out.println(s) System.out.println System.out System System.out s sc.close() sc.close sc InputStream in in public class Main {
	public static void main(String[] args) {
		new Main().execute(System.in);
	}

	public void execute(InputStream in) {
		Scanner sc = new Scanner(in);
		int n = sc.nextInt();

		String s = "";
		n = n % 10;
		switch (n) {
		case 2:
		case 4:
		case 5:
		case 7:
		case 9:
			s = "hon";
			break;
		case 0:
		case 1:
		case 6:
		case 8:
			s = "pon";
			break;
		case 3:
			s = "bon";
			break;
		}

		System.out.println(s);
		sc.close();
	}
} public class Main {
	public static void main(String[] args) {
		new Main().execute(System.in);
	}

	public void execute(InputStream in) {
		Scanner sc = new Scanner(in);
		int n = sc.nextInt();

		String s = "";
		n = n % 10;
		switch (n) {
		case 2:
		case 4:
		case 5:
		case 7:
		case 9:
			s = "hon";
			break;
		case 0:
		case 1:
		case 6:
		case 8:
			s = "pon";
			break;
		case 3:
			s = "bon";
			break;
		}

		System.out.println(s);
		sc.close();
	}
} Main
import java.io.InputStream;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		new Main().execute(System.in);
	}

	public void execute(InputStream in) {
		Scanner sc = new Scanner(in);
		int n = sc.nextInt();

		String s = "";
		n = n % 10;
		switch (n) {
		case 2:
		case 4:
		case 5:
		case 7:
		case 9:
			s = "hon";
			break;
		case 0:
		case 1:
		case 6:
		case 8:
			s = "pon";
			break;
		case 3:
			s = "bon";
			break;
		}

		System.out.println(s);
		sc.close();
	}
}
