import java.util.Scanner;

/*
 * @author Tanzim Ibn Patowary
 * Created  May 13, 2020 1:21:16 PM
 */
public class Main{

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int num = in.nextInt();
		int statement = 0;
		statement = num%10;
		if (statement == 2 || statement == 4 || statement == 5 || statement == 7 || statement == 9) {
			System.out.print("hon");
		} else if (statement == 0 || statement == 1 || statement == 6 || statement == 8) {
			System.out.print("pon");
		} else if (statement == 3) {
			System.out.print("bon");
		}
	}
} import java.util.Scanner; Scanner java.util public class Main{

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int num = in.nextInt();
		int statement = 0;
		statement = num%10;
		if (statement == 2 || statement == 4 || statement == 5 || statement == 7 || statement == 9) {
			System.out.print("hon");
		} else if (statement == 0 || statement == 1 || statement == 6 || statement == 8) {
			System.out.print("pon");
		} else if (statement == 3) {
			System.out.print("bon");
		}
	}
} Main public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int num = in.nextInt();
		int statement = 0;
		statement = num%10;
		if (statement == 2 || statement == 4 || statement == 5 || statement == 7 || statement == 9) {
			System.out.print("hon");
		} else if (statement == 0 || statement == 1 || statement == 6 || statement == 8) {
			System.out.print("pon");
		} else if (statement == 3) {
			System.out.print("bon");
		}
	} main {
		Scanner in = new Scanner(System.in);
		int num = in.nextInt();
		int statement = 0;
		statement = num%10;
		if (statement == 2 || statement == 4 || statement == 5 || statement == 7 || statement == 9) {
			System.out.print("hon");
		} else if (statement == 0 || statement == 1 || statement == 6 || statement == 8) {
			System.out.print("pon");
		} else if (statement == 3) {
			System.out.print("bon");
		}
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int num = in.nextInt(); num in.nextInt() in.nextInt in int statement = 0; statement 0 statement = num%10 statement num%10 num 10 if (statement == 2 || statement == 4 || statement == 5 || statement == 7 || statement == 9) {
			System.out.print("hon");
		} else if (statement == 0 || statement == 1 || statement == 6 || statement == 8) {
			System.out.print("pon");
		} else if (statement == 3) {
			System.out.print("bon");
		} statement == 2 || statement == 4 || statement == 5 || statement == 7 || statement == 9 statement == 7 statement == 5 statement == 2 || statement == 4 || statement == 5 || statement == 7 || statement == 9 statement == 2 statement 2 statement == 4 statement 4 statement == 5 statement 5 statement == 7 statement 7 statement == 9 statement 9 {
			System.out.print("hon");
		} System.out.print("hon") System.out.print System.out System System.out "hon" if (statement == 0 || statement == 1 || statement == 6 || statement == 8) {
			System.out.print("pon");
		} else if (statement == 3) {
			System.out.print("bon");
		} statement == 0 || statement == 1 || statement == 6 || statement == 8 statement == 6 statement == 0 || statement == 1 || statement == 6 || statement == 8 statement == 0 statement 0 statement == 1 statement 1 statement == 6 statement 6 statement == 8 statement 8 {
			System.out.print("pon");
		} System.out.print("pon") System.out.print System.out System System.out "pon" if (statement == 3) {
			System.out.print("bon");
		} statement == 3 statement 3 {
			System.out.print("bon");
		} System.out.print("bon") System.out.print System.out System System.out "bon" String[] args args public class Main{

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int num = in.nextInt();
		int statement = 0;
		statement = num%10;
		if (statement == 2 || statement == 4 || statement == 5 || statement == 7 || statement == 9) {
			System.out.print("hon");
		} else if (statement == 0 || statement == 1 || statement == 6 || statement == 8) {
			System.out.print("pon");
		} else if (statement == 3) {
			System.out.print("bon");
		}
	}
} public class Main{

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int num = in.nextInt();
		int statement = 0;
		statement = num%10;
		if (statement == 2 || statement == 4 || statement == 5 || statement == 7 || statement == 9) {
			System.out.print("hon");
		} else if (statement == 0 || statement == 1 || statement == 6 || statement == 8) {
			System.out.print("pon");
		} else if (statement == 3) {
			System.out.print("bon");
		}
	}
} Main
import java.util.Scanner;

/*
 * @author Tanzim Ibn Patowary
 * Created  May 13, 2020 1:21:16 PM
 */
public class Main{

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int num = in.nextInt();
		int statement = 0;
		statement = num%10;
		if (statement == 2 || statement == 4 || statement == 5 || statement == 7 || statement == 9) {
			System.out.print("hon");
		} else if (statement == 0 || statement == 1 || statement == 6 || statement == 8) {
			System.out.print("pon");
		} else if (statement == 3) {
			System.out.print("bon");
		}
	}
}
