import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());
		
		int x = n % 10;
		
		StringBuilder sb = new StringBuilder();
		if(x == 3)
			sb.append("bon\n");
		else if(x == 0 || x == 1 || x == 6 || x == 8)
			sb.append("pon\n");
		else
			sb.append("hon\n");
		
		System.out.println(sb);
		
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());
		
		int x = n % 10;
		
		StringBuilder sb = new StringBuilder();
		if(x == 3)
			sb.append("bon\n");
		else if(x == 0 || x == 1 || x == 6 || x == 8)
			sb.append("pon\n");
		else
			sb.append("hon\n");
		
		System.out.println(sb);
		
	}

} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());
		
		int x = n % 10;
		
		StringBuilder sb = new StringBuilder();
		if(x == 3)
			sb.append("bon\n");
		else if(x == 0 || x == 1 || x == 6 || x == 8)
			sb.append("pon\n");
		else
			sb.append("hon\n");
		
		System.out.println(sb);
		
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());
		
		int x = n % 10;
		
		StringBuilder sb = new StringBuilder();
		if(x == 3)
			sb.append("bon\n");
		else if(x == 0 || x == 1 || x == 6 || x == 8)
			sb.append("pon\n");
		else
			sb.append("hon\n");
		
		System.out.println(sb);
		
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int n = Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br int x = n % 10; x n % 10 n 10 StringBuilder sb = new StringBuilder(); sb new StringBuilder() if(x == 3)
			sb.append("bon\n");
		else if(x == 0 || x == 1 || x == 6 || x == 8)
			sb.append("pon\n");
		else
			sb.append("hon\n"); x == 3 x 3 sb.append("bon\n") sb.append sb "bon\n" if(x == 0 || x == 1 || x == 6 || x == 8)
			sb.append("pon\n");
		else
			sb.append("hon\n"); 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 sb.append("pon\n") sb.append sb "pon\n" sb.append("hon\n") sb.append sb "hon\n" System.out.println(sb) System.out.println System.out System System.out sb String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());
		
		int x = n % 10;
		
		StringBuilder sb = new StringBuilder();
		if(x == 3)
			sb.append("bon\n");
		else if(x == 0 || x == 1 || x == 6 || x == 8)
			sb.append("pon\n");
		else
			sb.append("hon\n");
		
		System.out.println(sb);
		
	}

} public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());
		
		int x = n % 10;
		
		StringBuilder sb = new StringBuilder();
		if(x == 3)
			sb.append("bon\n");
		else if(x == 0 || x == 1 || x == 6 || x == 8)
			sb.append("pon\n");
		else
			sb.append("hon\n");
		
		System.out.println(sb);
		
	}

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());
		
		int x = n % 10;
		
		StringBuilder sb = new StringBuilder();
		if(x == 3)
			sb.append("bon\n");
		else if(x == 0 || x == 1 || x == 6 || x == 8)
			sb.append("pon\n");
		else
			sb.append("hon\n");
		
		System.out.println(sb);
		
	}

}