
import java.util.*;

public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);

		int num = s.nextInt();
		
		int uder_hundred = num % 100;
		int under_ten = uder_hundred % 10;
		
		String out = "";
		switch (under_ten) {
		case 2:
		case 4:
		case 5:
		case 7:
		case 9:
			out = "hon";
			break;
		case 0:
		case 6:
		case 1:
		case 8:
			out = "pon";
			break;
						
		case 3:
			out = "bon";
			break;
			
		}
		
		System.out.println(out);
		
	}

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

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);

		int num = s.nextInt();
		
		int uder_hundred = num % 100;
		int under_ten = uder_hundred % 10;
		
		String out = "";
		switch (under_ten) {
		case 2:
		case 4:
		case 5:
		case 7:
		case 9:
			out = "hon";
			break;
		case 0:
		case 6:
		case 1:
		case 8:
			out = "pon";
			break;
						
		case 3:
			out = "bon";
			break;
			
		}
		
		System.out.println(out);
		
	}

} Main public static void main(String[] args) {
		Scanner s = new Scanner(System.in);

		int num = s.nextInt();
		
		int uder_hundred = num % 100;
		int under_ten = uder_hundred % 10;
		
		String out = "";
		switch (under_ten) {
		case 2:
		case 4:
		case 5:
		case 7:
		case 9:
			out = "hon";
			break;
		case 0:
		case 6:
		case 1:
		case 8:
			out = "pon";
			break;
						
		case 3:
			out = "bon";
			break;
			
		}
		
		System.out.println(out);
		
	} main {
		Scanner s = new Scanner(System.in);

		int num = s.nextInt();
		
		int uder_hundred = num % 100;
		int under_ten = uder_hundred % 10;
		
		String out = "";
		switch (under_ten) {
		case 2:
		case 4:
		case 5:
		case 7:
		case 9:
			out = "hon";
			break;
		case 0:
		case 6:
		case 1:
		case 8:
			out = "pon";
			break;
						
		case 3:
			out = "bon";
			break;
			
		}
		
		System.out.println(out);
		
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) int num = s.nextInt(); num s.nextInt() s.nextInt s int uder_hundred = num % 100; uder_hundred num % 100 num 100 int under_ten = uder_hundred % 10; under_ten uder_hundred % 10 uder_hundred 10 String out = ""; out "" switch (under_ten) {
		case 2:
		case 4:
		case 5:
		case 7:
		case 9:
			out = "hon";
			break;
		case 0:
		case 6:
		case 1:
		case 8:
			out = "pon";
			break;
						
		case 3:
			out = "bon";
			break;
			
		} under_ten case 2: 2 case 2: case 4: 4 case 4: case 5: 5 case 5: case 7: 7 case 7: case 9: 9 case 9: out = "hon" out "hon" break; case 0: 0 case 0: case 6: 6 case 6: case 1: 1 case 1: case 8: 8 case 8: out = "pon" out "pon" break; case 3: 3 case 3: out = "bon" out "bon" break; System.out.println(out) System.out.println System.out System System.out out String[] args args public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);

		int num = s.nextInt();
		
		int uder_hundred = num % 100;
		int under_ten = uder_hundred % 10;
		
		String out = "";
		switch (under_ten) {
		case 2:
		case 4:
		case 5:
		case 7:
		case 9:
			out = "hon";
			break;
		case 0:
		case 6:
		case 1:
		case 8:
			out = "pon";
			break;
						
		case 3:
			out = "bon";
			break;
			
		}
		
		System.out.println(out);
		
	}

} public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);

		int num = s.nextInt();
		
		int uder_hundred = num % 100;
		int under_ten = uder_hundred % 10;
		
		String out = "";
		switch (under_ten) {
		case 2:
		case 4:
		case 5:
		case 7:
		case 9:
			out = "hon";
			break;
		case 0:
		case 6:
		case 1:
		case 8:
			out = "pon";
			break;
						
		case 3:
			out = "bon";
			break;
			
		}
		
		System.out.println(out);
		
	}

} Main

import java.util.*;

public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);

		int num = s.nextInt();
		
		int uder_hundred = num % 100;
		int under_ten = uder_hundred % 10;
		
		String out = "";
		switch (under_ten) {
		case 2:
		case 4:
		case 5:
		case 7:
		case 9:
			out = "hon";
			break;
		case 0:
		case 6:
		case 1:
		case 8:
			out = "pon";
			break;
						
		case 3:
			out = "bon";
			break;
			
		}
		
		System.out.println(out);
		
	}

}
