import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int N = s.nextInt();
		int ones = N%10;
		String ans;
		if(ones == 3) {ans ="bon";}
		else if(ones==0 || ones==1 || ones==6 || ones==8) {ans="pon";}
		else {ans = "hon";}
		
		System.out.println(ans);
	}

} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int N = s.nextInt();
		int ones = N%10;
		String ans;
		if(ones == 3) {ans ="bon";}
		else if(ones==0 || ones==1 || ones==6 || ones==8) {ans="pon";}
		else {ans = "hon";}
		
		System.out.println(ans);
	}

} Main public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int N = s.nextInt();
		int ones = N%10;
		String ans;
		if(ones == 3) {ans ="bon";}
		else if(ones==0 || ones==1 || ones==6 || ones==8) {ans="pon";}
		else {ans = "hon";}
		
		System.out.println(ans);
	} main {
		Scanner s = new Scanner(System.in);
		int N = s.nextInt();
		int ones = N%10;
		String ans;
		if(ones == 3) {ans ="bon";}
		else if(ones==0 || ones==1 || ones==6 || ones==8) {ans="pon";}
		else {ans = "hon";}
		
		System.out.println(ans);
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) int N = s.nextInt(); N s.nextInt() s.nextInt s int ones = N%10; ones N%10 N 10 String ans; ans if(ones == 3) {ans ="bon";}
		else if(ones==0 || ones==1 || ones==6 || ones==8) {ans="pon";}
		else {ans = "hon";} ones == 3 ones 3 {ans ="bon";} ans ="bon" ans "bon" if(ones==0 || ones==1 || ones==6 || ones==8) {ans="pon";}
		else {ans = "hon";} ones==0 || ones==1 || ones==6 || ones==8 ones==6 ones==0 || ones==1 || ones==6 || ones==8 ones==0 ones 0 ones==1 ones 1 ones==6 ones 6 ones==8 ones 8 {ans="pon";} ans="pon" ans "pon" {ans = "hon";} ans = "hon" ans "hon" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int N = s.nextInt();
		int ones = N%10;
		String ans;
		if(ones == 3) {ans ="bon";}
		else if(ones==0 || ones==1 || ones==6 || ones==8) {ans="pon";}
		else {ans = "hon";}
		
		System.out.println(ans);
	}

} public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int N = s.nextInt();
		int ones = N%10;
		String ans;
		if(ones == 3) {ans ="bon";}
		else if(ones==0 || ones==1 || ones==6 || ones==8) {ans="pon";}
		else {ans = "hon";}
		
		System.out.println(ans);
	}

} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int N = s.nextInt();
		int ones = N%10;
		String ans;
		if(ones == 3) {ans ="bon";}
		else if(ones==0 || ones==1 || ones==6 || ones==8) {ans="pon";}
		else {ans = "hon";}
		
		System.out.println(ans);
	}

}
