import java.util.*;

public class Main {
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		String input = sc.next();
		char last = input.charAt(input.length()-1);
		if (last == '2' || last == '4' || last == '5' || last == '7' || last == '9') {
			System.out.println("hon");
		} else if (last == '0' || last == '1' || last == '6' || last == '8') {
			System.out.println("pon");
		} else {
			System.out.println("bon");
		}
		sc.close();
	}

} import java.util.*; util.* java public class Main {
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		String input = sc.next();
		char last = input.charAt(input.length()-1);
		if (last == '2' || last == '4' || last == '5' || last == '7' || last == '9') {
			System.out.println("hon");
		} else if (last == '0' || last == '1' || last == '6' || last == '8') {
			System.out.println("pon");
		} else {
			System.out.println("bon");
		}
		sc.close();
	}

} Main public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		String input = sc.next();
		char last = input.charAt(input.length()-1);
		if (last == '2' || last == '4' || last == '5' || last == '7' || last == '9') {
			System.out.println("hon");
		} else if (last == '0' || last == '1' || last == '6' || last == '8') {
			System.out.println("pon");
		} else {
			System.out.println("bon");
		}
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		String input = sc.next();
		char last = input.charAt(input.length()-1);
		if (last == '2' || last == '4' || last == '5' || last == '7' || last == '9') {
			System.out.println("hon");
		} else if (last == '0' || last == '1' || last == '6' || last == '8') {
			System.out.println("pon");
		} else {
			System.out.println("bon");
		}
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String input = sc.next(); input sc.next() sc.next sc char last = input.charAt(input.length()-1); last input.charAt(input.length()-1) input.charAt input input.length()-1 input.length() input.length input 1 if (last == '2' || last == '4' || last == '5' || last == '7' || last == '9') {
			System.out.println("hon");
		} else if (last == '0' || last == '1' || last == '6' || last == '8') {
			System.out.println("pon");
		} else {
			System.out.println("bon");
		} last == '2' || last == '4' || last == '5' || last == '7' || last == '9' last == '7' last == '5' last == '2' || last == '4' || last == '5' || last == '7' || last == '9' last == '2' last '2' last == '4' last '4' last == '5' last '5' last == '7' last '7' last == '9' last '9' {
			System.out.println("hon");
		} System.out.println("hon") System.out.println System.out System System.out "hon" if (last == '0' || last == '1' || last == '6' || last == '8') {
			System.out.println("pon");
		} else {
			System.out.println("bon");
		} last == '0' || last == '1' || last == '6' || last == '8' last == '6' last == '0' || last == '1' || last == '6' || last == '8' last == '0' last '0' last == '1' last '1' last == '6' last '6' last == '8' last '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" sc.close() sc.close sc String args[] args public class Main {
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		String input = sc.next();
		char last = input.charAt(input.length()-1);
		if (last == '2' || last == '4' || last == '5' || last == '7' || last == '9') {
			System.out.println("hon");
		} else if (last == '0' || last == '1' || last == '6' || last == '8') {
			System.out.println("pon");
		} else {
			System.out.println("bon");
		}
		sc.close();
	}

} public class Main {
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		String input = sc.next();
		char last = input.charAt(input.length()-1);
		if (last == '2' || last == '4' || last == '5' || last == '7' || last == '9') {
			System.out.println("hon");
		} else if (last == '0' || last == '1' || last == '6' || last == '8') {
			System.out.println("pon");
		} else {
			System.out.println("bon");
		}
		sc.close();
	}

} Main
import java.util.*;

public class Main {
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		String input = sc.next();
		char last = input.charAt(input.length()-1);
		if (last == '2' || last == '4' || last == '5' || last == '7' || last == '9') {
			System.out.println("hon");
		} else if (last == '0' || last == '1' || last == '6' || last == '8') {
			System.out.println("pon");
		} else {
			System.out.println("bon");
		}
		sc.close();
	}

}