import java.io.*;
import java.math.*;
import java.util.*;
public class Main { //Perform BFS from 2...N then use those values to print

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int x = input.nextInt();
		x%=10;
		String ans = "";
		if (x==3) ans = "bon";
		else if (x==0||x==1||x==6||x==8) ans = "pon";
		else ans = "hon";
		System.out.println(ans);
	}	
} import java.io.*; io.* java import java.math.*; math.* java import java.util.*; util.* java public class Main { //Perform BFS from 2...N then use those values to print

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int x = input.nextInt();
		x%=10;
		String ans = "";
		if (x==3) ans = "bon";
		else if (x==0||x==1||x==6||x==8) ans = "pon";
		else ans = "hon";
		System.out.println(ans);
	}	
} Main public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int x = input.nextInt();
		x%=10;
		String ans = "";
		if (x==3) ans = "bon";
		else if (x==0||x==1||x==6||x==8) ans = "pon";
		else ans = "hon";
		System.out.println(ans);
	} main {
		Scanner input = new Scanner(System.in);
		int x = input.nextInt();
		x%=10;
		String ans = "";
		if (x==3) ans = "bon";
		else if (x==0||x==1||x==6||x==8) ans = "pon";
		else ans = "hon";
		System.out.println(ans);
	} Scanner input = new Scanner(System.in); input new Scanner(System.in) int x = input.nextInt(); x input.nextInt() input.nextInt input x%=10 x 10 String ans = ""; ans "" if (x==3) ans = "bon";
		else if (x==0||x==1||x==6||x==8) ans = "pon";
		else ans = "hon"; x==3 x 3 ans = "bon" ans "bon" if (x==0||x==1||x==6||x==8) ans = "pon";
		else ans = "hon"; 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 ans = "pon" ans "pon" ans = "hon" ans "hon" System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main { //Perform BFS from 2...N then use those values to print

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int x = input.nextInt();
		x%=10;
		String ans = "";
		if (x==3) ans = "bon";
		else if (x==0||x==1||x==6||x==8) ans = "pon";
		else ans = "hon";
		System.out.println(ans);
	}	
} public class Main { //Perform BFS from 2...N then use those values to print

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int x = input.nextInt();
		x%=10;
		String ans = "";
		if (x==3) ans = "bon";
		else if (x==0||x==1||x==6||x==8) ans = "pon";
		else ans = "hon";
		System.out.println(ans);
	}	
} Main
import java.io.*;
import java.math.*;
import java.util.*;
public class Main { //Perform BFS from 2...N then use those values to print

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