import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		switch(new Scanner(System.in).nextInt()%10) {
		
		case 2:
		case 4:
		case 5:
		case 7:
		case 9:
			System.out.println("hon");
			return;
			
		case 0:
		case 1:
		case 6:
		case 8:
			System.out.println("pon");
			return;
			
		case 3:
			System.out.println("bon");
			return;
			
		}
	}

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

	public static void main(String[] args) {
		switch(new Scanner(System.in).nextInt()%10) {
		
		case 2:
		case 4:
		case 5:
		case 7:
		case 9:
			System.out.println("hon");
			return;
			
		case 0:
		case 1:
		case 6:
		case 8:
			System.out.println("pon");
			return;
			
		case 3:
			System.out.println("bon");
			return;
			
		}
	}

} Main public static void main(String[] args) {
		switch(new Scanner(System.in).nextInt()%10) {
		
		case 2:
		case 4:
		case 5:
		case 7:
		case 9:
			System.out.println("hon");
			return;
			
		case 0:
		case 1:
		case 6:
		case 8:
			System.out.println("pon");
			return;
			
		case 3:
			System.out.println("bon");
			return;
			
		}
	} main {
		switch(new Scanner(System.in).nextInt()%10) {
		
		case 2:
		case 4:
		case 5:
		case 7:
		case 9:
			System.out.println("hon");
			return;
			
		case 0:
		case 1:
		case 6:
		case 8:
			System.out.println("pon");
			return;
			
		case 3:
			System.out.println("bon");
			return;
			
		}
	} switch(new Scanner(System.in).nextInt()%10) {
		
		case 2:
		case 4:
		case 5:
		case 7:
		case 9:
			System.out.println("hon");
			return;
			
		case 0:
		case 1:
		case 6:
		case 8:
			System.out.println("pon");
			return;
			
		case 3:
			System.out.println("bon");
			return;
			
		} new Scanner(System.in).nextInt()%10 new Scanner(System.in).nextInt() new Scanner(System.in).nextInt new Scanner(System.in) 10 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: System.out.println("hon") System.out.println System.out System System.out "hon" return; case 0: 0 case 0: case 1: 1 case 1: case 6: 6 case 6: case 8: 8 case 8: System.out.println("pon") System.out.println System.out System System.out "pon" return; case 3: 3 case 3: System.out.println("bon") System.out.println System.out System System.out "bon" return; String[] args args public class Main {

	public static void main(String[] args) {
		switch(new Scanner(System.in).nextInt()%10) {
		
		case 2:
		case 4:
		case 5:
		case 7:
		case 9:
			System.out.println("hon");
			return;
			
		case 0:
		case 1:
		case 6:
		case 8:
			System.out.println("pon");
			return;
			
		case 3:
			System.out.println("bon");
			return;
			
		}
	}

} public class Main {

	public static void main(String[] args) {
		switch(new Scanner(System.in).nextInt()%10) {
		
		case 2:
		case 4:
		case 5:
		case 7:
		case 9:
			System.out.println("hon");
			return;
			
		case 0:
		case 1:
		case 6:
		case 8:
			System.out.println("pon");
			return;
			
		case 3:
			System.out.println("bon");
			return;
			
		}
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		switch(new Scanner(System.in).nextInt()%10) {
		
		case 2:
		case 4:
		case 5:
		case 7:
		case 9:
			System.out.println("hon");
			return;
			
		case 0:
		case 1:
		case 6:
		case 8:
			System.out.println("pon");
			return;
			
		case 3:
			System.out.println("bon");
			return;
			
		}
	}

}
