import java.util.Scanner;
 
public class Main {
 
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
 		String tmp = ""+N;
     	int howlong = tmp.length();
      	String a = tmp.substring(howlong-1);
      	int n = Integer.parseInt(a);
      	String pon ="pon";
      	
      	if(n==2 || n==4 || n==5 || n==7 || n==9){
          pon = "hon";
        } else if (n==3){
          pon = "bon";
        }
      
		System.out.println(pon);
	}
 
} import java.util.Scanner; Scanner java.util public class Main {
 
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
 		String tmp = ""+N;
     	int howlong = tmp.length();
      	String a = tmp.substring(howlong-1);
      	int n = Integer.parseInt(a);
      	String pon ="pon";
      	
      	if(n==2 || n==4 || n==5 || n==7 || n==9){
          pon = "hon";
        } else if (n==3){
          pon = "bon";
        }
      
		System.out.println(pon);
	}
 
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
 		String tmp = ""+N;
     	int howlong = tmp.length();
      	String a = tmp.substring(howlong-1);
      	int n = Integer.parseInt(a);
      	String pon ="pon";
      	
      	if(n==2 || n==4 || n==5 || n==7 || n==9){
          pon = "hon";
        } else if (n==3){
          pon = "bon";
        }
      
		System.out.println(pon);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
 		String tmp = ""+N;
     	int howlong = tmp.length();
      	String a = tmp.substring(howlong-1);
      	int n = Integer.parseInt(a);
      	String pon ="pon";
      	
      	if(n==2 || n==4 || n==5 || n==7 || n==9){
          pon = "hon";
        } else if (n==3){
          pon = "bon";
        }
      
		System.out.println(pon);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc String tmp = ""+N; tmp ""+N "" N int howlong = tmp.length(); howlong tmp.length() tmp.length tmp String a = tmp.substring(howlong-1); a tmp.substring(howlong-1) tmp.substring tmp howlong-1 howlong 1 int n = Integer.parseInt(a); n Integer.parseInt(a) Integer.parseInt Integer a String pon ="pon"; pon "pon" if(n==2 || n==4 || n==5 || n==7 || n==9){
          pon = "hon";
        } else if (n==3){
          pon = "bon";
        } n==2 || n==4 || n==5 || n==7 || n==9 n==7 n==5 n==2 || n==4 || n==5 || n==7 || n==9 n==2 n 2 n==4 n 4 n==5 n 5 n==7 n 7 n==9 n 9 {
          pon = "hon";
        } pon = "hon" pon "hon" if (n==3){
          pon = "bon";
        } n==3 n 3 {
          pon = "bon";
        } pon = "bon" pon "bon" System.out.println(pon) System.out.println System.out System System.out pon String[] args args public class Main {
 
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
 		String tmp = ""+N;
     	int howlong = tmp.length();
      	String a = tmp.substring(howlong-1);
      	int n = Integer.parseInt(a);
      	String pon ="pon";
      	
      	if(n==2 || n==4 || n==5 || n==7 || n==9){
          pon = "hon";
        } else if (n==3){
          pon = "bon";
        }
      
		System.out.println(pon);
	}
 
} public class Main {
 
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
 		String tmp = ""+N;
     	int howlong = tmp.length();
      	String a = tmp.substring(howlong-1);
      	int n = Integer.parseInt(a);
      	String pon ="pon";
      	
      	if(n==2 || n==4 || n==5 || n==7 || n==9){
          pon = "hon";
        } else if (n==3){
          pon = "bon";
        }
      
		System.out.println(pon);
	}
 
} Main
import java.util.Scanner;
 
public class Main {
 
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
 		String tmp = ""+N;
     	int howlong = tmp.length();
      	String a = tmp.substring(howlong-1);
      	int n = Integer.parseInt(a);
      	String pon ="pon";
      	
      	if(n==2 || n==4 || n==5 || n==7 || n==9){
          pon = "hon";
        } else if (n==3){
          pon = "bon";
        }
      
		System.out.println(pon);
	}
 
}