import java.util.*;

public class Main{
	public static void main(String[] args) {

		Scanner keyboard = new Scanner(System.in);

		int N = keyboard.nextInt();
		
		if(N%10 == 3) {
			System.out.println("bon");
		}else if(N%10 == 0 ||N%10 == 1 ||N%10 == 6 ||N%10 == 8) {
			System.out.println("pon");
		}else {
			System.out.println("hon");
		}
		
		keyboard.close();
	}
} import java.util.*; util.* java public class Main{
	public static void main(String[] args) {

		Scanner keyboard = new Scanner(System.in);

		int N = keyboard.nextInt();
		
		if(N%10 == 3) {
			System.out.println("bon");
		}else if(N%10 == 0 ||N%10 == 1 ||N%10 == 6 ||N%10 == 8) {
			System.out.println("pon");
		}else {
			System.out.println("hon");
		}
		
		keyboard.close();
	}
} Main public static void main(String[] args) {

		Scanner keyboard = new Scanner(System.in);

		int N = keyboard.nextInt();
		
		if(N%10 == 3) {
			System.out.println("bon");
		}else if(N%10 == 0 ||N%10 == 1 ||N%10 == 6 ||N%10 == 8) {
			System.out.println("pon");
		}else {
			System.out.println("hon");
		}
		
		keyboard.close();
	} main {

		Scanner keyboard = new Scanner(System.in);

		int N = keyboard.nextInt();
		
		if(N%10 == 3) {
			System.out.println("bon");
		}else if(N%10 == 0 ||N%10 == 1 ||N%10 == 6 ||N%10 == 8) {
			System.out.println("pon");
		}else {
			System.out.println("hon");
		}
		
		keyboard.close();
	} Scanner keyboard = new Scanner(System.in); keyboard new Scanner(System.in) int N = keyboard.nextInt(); N keyboard.nextInt() keyboard.nextInt keyboard if(N%10 == 3) {
			System.out.println("bon");
		}else if(N%10 == 0 ||N%10 == 1 ||N%10 == 6 ||N%10 == 8) {
			System.out.println("pon");
		}else {
			System.out.println("hon");
		} N%10 == 3 N%10 N 10 3 {
			System.out.println("bon");
		} System.out.println("bon") System.out.println System.out System System.out "bon" if(N%10 == 0 ||N%10 == 1 ||N%10 == 6 ||N%10 == 8) {
			System.out.println("pon");
		}else {
			System.out.println("hon");
		} N%10 == 0 ||N%10 == 1 ||N%10 == 6 ||N%10 == 8 N%10 == 6 N%10 == 0 ||N%10 == 1 ||N%10 == 6 ||N%10 == 8 N%10 == 0 N%10 N 10 0 N%10 == 1 N%10 N 10 1 N%10 == 6 N%10 N 10 6 N%10 == 8 N%10 N 10 8 {
			System.out.println("pon");
		} System.out.println("pon") System.out.println System.out System System.out "pon" {
			System.out.println("hon");
		} System.out.println("hon") System.out.println System.out System System.out "hon" keyboard.close() keyboard.close keyboard String[] args args public class Main{
	public static void main(String[] args) {

		Scanner keyboard = new Scanner(System.in);

		int N = keyboard.nextInt();
		
		if(N%10 == 3) {
			System.out.println("bon");
		}else if(N%10 == 0 ||N%10 == 1 ||N%10 == 6 ||N%10 == 8) {
			System.out.println("pon");
		}else {
			System.out.println("hon");
		}
		
		keyboard.close();
	}
} public class Main{
	public static void main(String[] args) {

		Scanner keyboard = new Scanner(System.in);

		int N = keyboard.nextInt();
		
		if(N%10 == 3) {
			System.out.println("bon");
		}else if(N%10 == 0 ||N%10 == 1 ||N%10 == 6 ||N%10 == 8) {
			System.out.println("pon");
		}else {
			System.out.println("hon");
		}
		
		keyboard.close();
	}
} Main
import java.util.*;

public class Main{
	public static void main(String[] args) {

		Scanner keyboard = new Scanner(System.in);

		int N = keyboard.nextInt();
		
		if(N%10 == 3) {
			System.out.println("bon");
		}else if(N%10 == 0 ||N%10 == 1 ||N%10 == 6 ||N%10 == 8) {
			System.out.println("pon");
		}else {
			System.out.println("hon");
		}
		
		keyboard.close();
	}
}