import java.util.*;
public class Main {
	
	public static void main(String[] args){
		
		Integer[] calledPon = {0,1,6,8};
		
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int num = sc.nextInt()%10;

		if(num == 3) {
			System.out.println("bon");
		} else if (Arrays.asList(calledPon).contains(num)) {
			System.out.println("pon");
		} else {
			System.out.println("hon");
		}
		
	}
} import java.util.*; util.* java public class Main {
	
	public static void main(String[] args){
		
		Integer[] calledPon = {0,1,6,8};
		
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int num = sc.nextInt()%10;

		if(num == 3) {
			System.out.println("bon");
		} else if (Arrays.asList(calledPon).contains(num)) {
			System.out.println("pon");
		} else {
			System.out.println("hon");
		}
		
	}
} Main public static void main(String[] args){
		
		Integer[] calledPon = {0,1,6,8};
		
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int num = sc.nextInt()%10;

		if(num == 3) {
			System.out.println("bon");
		} else if (Arrays.asList(calledPon).contains(num)) {
			System.out.println("pon");
		} else {
			System.out.println("hon");
		}
		
	} main {
		
		Integer[] calledPon = {0,1,6,8};
		
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int num = sc.nextInt()%10;

		if(num == 3) {
			System.out.println("bon");
		} else if (Arrays.asList(calledPon).contains(num)) {
			System.out.println("pon");
		} else {
			System.out.println("hon");
		}
		
	} Integer[] calledPon = {0,1,6,8}; calledPon {0,1,6,8} 0 1 6 8 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = sc.nextInt()%10; num sc.nextInt()%10 sc.nextInt() sc.nextInt sc 10 if(num == 3) {
			System.out.println("bon");
		} else if (Arrays.asList(calledPon).contains(num)) {
			System.out.println("pon");
		} else {
			System.out.println("hon");
		} num == 3 num 3 {
			System.out.println("bon");
		} System.out.println("bon") System.out.println System.out System System.out "bon" if (Arrays.asList(calledPon).contains(num)) {
			System.out.println("pon");
		} else {
			System.out.println("hon");
		} Arrays.asList(calledPon).contains(num) Arrays.asList(calledPon).contains Arrays.asList(calledPon) Arrays.asList Arrays calledPon num {
			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" String[] args args public class Main {
	
	public static void main(String[] args){
		
		Integer[] calledPon = {0,1,6,8};
		
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int num = sc.nextInt()%10;

		if(num == 3) {
			System.out.println("bon");
		} else if (Arrays.asList(calledPon).contains(num)) {
			System.out.println("pon");
		} else {
			System.out.println("hon");
		}
		
	}
} public class Main {
	
	public static void main(String[] args){
		
		Integer[] calledPon = {0,1,6,8};
		
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int num = sc.nextInt()%10;

		if(num == 3) {
			System.out.println("bon");
		} else if (Arrays.asList(calledPon).contains(num)) {
			System.out.println("pon");
		} else {
			System.out.println("hon");
		}
		
	}
} Main
import java.util.*;
public class Main {
	
	public static void main(String[] args){
		
		Integer[] calledPon = {0,1,6,8};
		
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int num = sc.nextInt()%10;

		if(num == 3) {
			System.out.println("bon");
		} else if (Arrays.asList(calledPon).contains(num)) {
			System.out.println("pon");
		} else {
			System.out.println("hon");
		}
		
	}
}