import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scr =new Scanner(System.in);
		
		int N = scr.nextInt();
		int A = N%100;
		int B = A%10;
		
		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 scr =new Scanner(System.in);
		
		int N = scr.nextInt();
		int A = N%100;
		int B = A%10;
		
		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 scr =new Scanner(System.in);
		
		int N = scr.nextInt();
		int A = N%100;
		int B = A%10;
		
		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 scr =new Scanner(System.in);
		
		int N = scr.nextInt();
		int A = N%100;
		int B = A%10;
		
		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 scr =new Scanner(System.in); scr new Scanner(System.in) int N = scr.nextInt(); N scr.nextInt() scr.nextInt scr int A = N%100; A N%100 N 100 int B = A%10; B A%10 A 10 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 scr =new Scanner(System.in);
		
		int N = scr.nextInt();
		int A = N%100;
		int B = A%10;
		
		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 scr =new Scanner(System.in);
		
		int N = scr.nextInt();
		int A = N%100;
		int B = A%10;
		
		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 scr =new Scanner(System.in);
		
		int N = scr.nextInt();
		int A = N%100;
		int B = A%10;
		
		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");
		}
		
	}
}