
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		 Scanner sc = new Scanner(System.in);
			String A = sc.nextLine();
	        char B = A.charAt(A.length() -1);

	        if(B == '3') {
	        	System.out.println("bon");
	        }else if(B=='0'|B=='1'|B=='6'|B=='8'){
	        	System.out.println("pon");
	        }else {
	        	System.out.println("hon");
		 }
		}
		

	}
 import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		 Scanner sc = new Scanner(System.in);
			String A = sc.nextLine();
	        char B = A.charAt(A.length() -1);

	        if(B == '3') {
	        	System.out.println("bon");
	        }else if(B=='0'|B=='1'|B=='6'|B=='8'){
	        	System.out.println("pon");
	        }else {
	        	System.out.println("hon");
		 }
		}
		

	} Main public static void main(String[] args) {
		 Scanner sc = new Scanner(System.in);
			String A = sc.nextLine();
	        char B = A.charAt(A.length() -1);

	        if(B == '3') {
	        	System.out.println("bon");
	        }else if(B=='0'|B=='1'|B=='6'|B=='8'){
	        	System.out.println("pon");
	        }else {
	        	System.out.println("hon");
		 }
		} main {
		 Scanner sc = new Scanner(System.in);
			String A = sc.nextLine();
	        char B = A.charAt(A.length() -1);

	        if(B == '3') {
	        	System.out.println("bon");
	        }else if(B=='0'|B=='1'|B=='6'|B=='8'){
	        	System.out.println("pon");
	        }else {
	        	System.out.println("hon");
		 }
		} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String A = sc.nextLine(); A sc.nextLine() sc.nextLine sc char B = A.charAt(A.length() -1); B A.charAt(A.length() -1) A.charAt A A.length() -1 A.length() A.length A 1 if(B == '3') {
	        	System.out.println("bon");
	        }else if(B=='0'|B=='1'|B=='6'|B=='8'){
	        	System.out.println("pon");
	        }else {
	        	System.out.println("hon");
		 } B == '3' B '3' {
	        	System.out.println("bon");
	        } System.out.println("bon") System.out.println System.out System System.out "bon" if(B=='0'|B=='1'|B=='6'|B=='8'){
	        	System.out.println("pon");
	        }else {
	        	System.out.println("hon");
		 } B=='0'|B=='1'|B=='6'|B=='8' B=='6' B=='0'|B=='1'|B=='6'|B=='8' B=='0' B '0' B=='1' B '1' B=='6' B '6' B=='8' B '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" String[] args args public class Main {
	public static void main(String[] args) {
		 Scanner sc = new Scanner(System.in);
			String A = sc.nextLine();
	        char B = A.charAt(A.length() -1);

	        if(B == '3') {
	        	System.out.println("bon");
	        }else if(B=='0'|B=='1'|B=='6'|B=='8'){
	        	System.out.println("pon");
	        }else {
	        	System.out.println("hon");
		 }
		}
		

	} public class Main {
	public static void main(String[] args) {
		 Scanner sc = new Scanner(System.in);
			String A = sc.nextLine();
	        char B = A.charAt(A.length() -1);

	        if(B == '3') {
	        	System.out.println("bon");
	        }else if(B=='0'|B=='1'|B=='6'|B=='8'){
	        	System.out.println("pon");
	        }else {
	        	System.out.println("hon");
		 }
		}
		

	} Main

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		 Scanner sc = new Scanner(System.in);
			String A = sc.nextLine();
	        char B = A.charAt(A.length() -1);

	        if(B == '3') {
	        	System.out.println("bon");
	        }else if(B=='0'|B=='1'|B=='6'|B=='8'){
	        	System.out.println("pon");
	        }else {
	        	System.out.println("hon");
		 }
		}
		

	}

