
import java.util.Scanner;

public class Main {

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

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

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

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

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

} public class Main {

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

} Main

import java.util.Scanner;

public class Main {

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

}
