import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner scan =new Scanner(System.in);
		int N=scan.nextInt();
		int a=(N%100)%10;
		int b=0;
		int[][] c= {{2,4,5,7,9},{0,1,6,8},{3}};
		String[] d= {"hon","pon","bon"};
		while(true) {
			for(int i=0;i<3;i++)
				for(int j=0;j<c[i].length;j++)
					if(a==c[i][j])
						b=i;
						break;
		}
		System.out.print(d[b]);
	}

} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scan =new Scanner(System.in);
		int N=scan.nextInt();
		int a=(N%100)%10;
		int b=0;
		int[][] c= {{2,4,5,7,9},{0,1,6,8},{3}};
		String[] d= {"hon","pon","bon"};
		while(true) {
			for(int i=0;i<3;i++)
				for(int j=0;j<c[i].length;j++)
					if(a==c[i][j])
						b=i;
						break;
		}
		System.out.print(d[b]);
	}

} Main public static void main(String[] args) {
		Scanner scan =new Scanner(System.in);
		int N=scan.nextInt();
		int a=(N%100)%10;
		int b=0;
		int[][] c= {{2,4,5,7,9},{0,1,6,8},{3}};
		String[] d= {"hon","pon","bon"};
		while(true) {
			for(int i=0;i<3;i++)
				for(int j=0;j<c[i].length;j++)
					if(a==c[i][j])
						b=i;
						break;
		}
		System.out.print(d[b]);
	} main {
		Scanner scan =new Scanner(System.in);
		int N=scan.nextInt();
		int a=(N%100)%10;
		int b=0;
		int[][] c= {{2,4,5,7,9},{0,1,6,8},{3}};
		String[] d= {"hon","pon","bon"};
		while(true) {
			for(int i=0;i<3;i++)
				for(int j=0;j<c[i].length;j++)
					if(a==c[i][j])
						b=i;
						break;
		}
		System.out.print(d[b]);
	} Scanner scan =new Scanner(System.in); scan new Scanner(System.in) int N=scan.nextInt(); N scan.nextInt() scan.nextInt scan int a=(N%100)%10; a (N%100)%10 (N%100) N 100 10 int b=0; b 0 int[][] c= {{2,4,5,7,9},{0,1,6,8},{3}}; c {{2,4,5,7,9},{0,1,6,8},{3}} {2,4,5,7,9} 2 4 5 7 9 {0,1,6,8} 0 1 6 8 {3} 3 String[] d= {"hon","pon","bon"}; d {"hon","pon","bon"} "hon" "pon" "bon" while(true) {
			for(int i=0;i<3;i++)
				for(int j=0;j<c[i].length;j++)
					if(a==c[i][j])
						b=i;
						break;
		} true {
			for(int i=0;i<3;i++)
				for(int j=0;j<c[i].length;j++)
					if(a==c[i][j])
						b=i;
						break;
		} for(int i=0;i<3;i++)
				for(int j=0;j<c[i].length;j++)
					if(a==c[i][j])
						b=i; int i=0; int i=0; i 0 i<3 i 3 i++ i++ i for(int j=0;j<c[i].length;j++)
					if(a==c[i][j])
						b=i; for(int j=0;j<c[i].length;j++)
					if(a==c[i][j])
						b=i; int j=0; int j=0; j 0 j<c[i].length j c[i].length c[i] c i c[i].length j++ j++ j if(a==c[i][j])
						b=i; if(a==c[i][j])
						b=i; a==c[i][j] a c[i][j] c[i] c i j b=i b i break; System.out.print(d[b]) System.out.print System.out System System.out d[b] d b String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scan =new Scanner(System.in);
		int N=scan.nextInt();
		int a=(N%100)%10;
		int b=0;
		int[][] c= {{2,4,5,7,9},{0,1,6,8},{3}};
		String[] d= {"hon","pon","bon"};
		while(true) {
			for(int i=0;i<3;i++)
				for(int j=0;j<c[i].length;j++)
					if(a==c[i][j])
						b=i;
						break;
		}
		System.out.print(d[b]);
	}

} public class Main {
	public static void main(String[] args) {
		Scanner scan =new Scanner(System.in);
		int N=scan.nextInt();
		int a=(N%100)%10;
		int b=0;
		int[][] c= {{2,4,5,7,9},{0,1,6,8},{3}};
		String[] d= {"hon","pon","bon"};
		while(true) {
			for(int i=0;i<3;i++)
				for(int j=0;j<c[i].length;j++)
					if(a==c[i][j])
						b=i;
						break;
		}
		System.out.print(d[b]);
	}

} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner scan =new Scanner(System.in);
		int N=scan.nextInt();
		int a=(N%100)%10;
		int b=0;
		int[][] c= {{2,4,5,7,9},{0,1,6,8},{3}};
		String[] d= {"hon","pon","bon"};
		while(true) {
			for(int i=0;i<3;i++)
				for(int j=0;j<c[i].length;j++)
					if(a==c[i][j])
						b=i;
						break;
		}
		System.out.print(d[b]);
	}

}
