import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		String n = kb.next();
		char x = n.charAt(n.length()-1);
		if (x=='2' || x=='4' || x=='5' || x=='7' || x=='9') {
			System.out.println("hon");
		} else if (x=='0' || x=='1' || x=='6' || x=='8') {
			System.out.println("pon");
		} else {
			System.out.println("bon");
		}
		
		kb.close();
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		String n = kb.next();
		char x = n.charAt(n.length()-1);
		if (x=='2' || x=='4' || x=='5' || x=='7' || x=='9') {
			System.out.println("hon");
		} else if (x=='0' || x=='1' || x=='6' || x=='8') {
			System.out.println("pon");
		} else {
			System.out.println("bon");
		}
		
		kb.close();
	}

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

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		String n = kb.next();
		char x = n.charAt(n.length()-1);
		if (x=='2' || x=='4' || x=='5' || x=='7' || x=='9') {
			System.out.println("hon");
		} else if (x=='0' || x=='1' || x=='6' || x=='8') {
			System.out.println("pon");
		} else {
			System.out.println("bon");
		}
		
		kb.close();
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		String n = kb.next();
		char x = n.charAt(n.length()-1);
		if (x=='2' || x=='4' || x=='5' || x=='7' || x=='9') {
			System.out.println("hon");
		} else if (x=='0' || x=='1' || x=='6' || x=='8') {
			System.out.println("pon");
		} else {
			System.out.println("bon");
		}
		
		kb.close();
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		String n = kb.next();
		char x = n.charAt(n.length()-1);
		if (x=='2' || x=='4' || x=='5' || x=='7' || x=='9') {
			System.out.println("hon");
		} else if (x=='0' || x=='1' || x=='6' || x=='8') {
			System.out.println("pon");
		} else {
			System.out.println("bon");
		}
		
		kb.close();
	}

}
