import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
       
        int num = scan.nextInt();
        int mod = num % 10;
        
		if ( (mod == 2) || (mod == 4) || (mod == 5) || (mod == 7) || (mod == 9) ) {
		    System.out.println("hon");	
		}
        else if ( mod == 0 ||  mod == 1 ||  mod == 6 ||  mod == 8 ) {
            System.out.println("pon");
        }
        else {
            System.out.println("bon");
        }
        scan.close();
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
       
        int num = scan.nextInt();
        int mod = num % 10;
        
		if ( (mod == 2) || (mod == 4) || (mod == 5) || (mod == 7) || (mod == 9) ) {
		    System.out.println("hon");	
		}
        else if ( mod == 0 ||  mod == 1 ||  mod == 6 ||  mod == 8 ) {
            System.out.println("pon");
        }
        else {
            System.out.println("bon");
        }
        scan.close();
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
       
        int num = scan.nextInt();
        int mod = num % 10;
        
		if ( (mod == 2) || (mod == 4) || (mod == 5) || (mod == 7) || (mod == 9) ) {
		    System.out.println("hon");	
		}
        else if ( mod == 0 ||  mod == 1 ||  mod == 6 ||  mod == 8 ) {
            System.out.println("pon");
        }
        else {
            System.out.println("bon");
        }
        scan.close();
    } main {
        Scanner scan = new Scanner(System.in);
       
        int num = scan.nextInt();
        int mod = num % 10;
        
		if ( (mod == 2) || (mod == 4) || (mod == 5) || (mod == 7) || (mod == 9) ) {
		    System.out.println("hon");	
		}
        else if ( mod == 0 ||  mod == 1 ||  mod == 6 ||  mod == 8 ) {
            System.out.println("pon");
        }
        else {
            System.out.println("bon");
        }
        scan.close();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int num = scan.nextInt(); num scan.nextInt() scan.nextInt scan int mod = num % 10; mod num % 10 num 10 if ( (mod == 2) || (mod == 4) || (mod == 5) || (mod == 7) || (mod == 9) ) {
		    System.out.println("hon");	
		}
        else if ( mod == 0 ||  mod == 1 ||  mod == 6 ||  mod == 8 ) {
            System.out.println("pon");
        }
        else {
            System.out.println("bon");
        } (mod == 2) || (mod == 4) || (mod == 5) || (mod == 7) || (mod == 9) (mod == 7) (mod == 5) (mod == 2) || (mod == 4) || (mod == 5) || (mod == 7) || (mod == 9) (mod == 2) mod 2 (mod == 4) mod 4 (mod == 5) mod 5 (mod == 7) mod 7 (mod == 9) mod 9 {
		    System.out.println("hon");	
		} System.out.println("hon") System.out.println System.out System System.out "hon" if ( mod == 0 ||  mod == 1 ||  mod == 6 ||  mod == 8 ) {
            System.out.println("pon");
        }
        else {
            System.out.println("bon");
        } mod == 0 ||  mod == 1 ||  mod == 6 ||  mod == 8 mod == 6 mod == 0 ||  mod == 1 ||  mod == 6 ||  mod == 8 mod == 0 mod 0 mod == 1 mod 1 mod == 6 mod 6 mod == 8 mod 8 {
            System.out.println("pon");
        } System.out.println("pon") System.out.println System.out System System.out "pon" {
            System.out.println("bon");
        } System.out.println("bon") System.out.println System.out System System.out "bon" scan.close() scan.close scan String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
       
        int num = scan.nextInt();
        int mod = num % 10;
        
		if ( (mod == 2) || (mod == 4) || (mod == 5) || (mod == 7) || (mod == 9) ) {
		    System.out.println("hon");	
		}
        else if ( mod == 0 ||  mod == 1 ||  mod == 6 ||  mod == 8 ) {
            System.out.println("pon");
        }
        else {
            System.out.println("bon");
        }
        scan.close();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
       
        int num = scan.nextInt();
        int mod = num % 10;
        
		if ( (mod == 2) || (mod == 4) || (mod == 5) || (mod == 7) || (mod == 9) ) {
		    System.out.println("hon");	
		}
        else if ( mod == 0 ||  mod == 1 ||  mod == 6 ||  mod == 8 ) {
            System.out.println("pon");
        }
        else {
            System.out.println("bon");
        }
        scan.close();
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
       
        int num = scan.nextInt();
        int mod = num % 10;
        
		if ( (mod == 2) || (mod == 4) || (mod == 5) || (mod == 7) || (mod == 9) ) {
		    System.out.println("hon");	
		}
        else if ( mod == 0 ||  mod == 1 ||  mod == 6 ||  mod == 8 ) {
            System.out.println("pon");
        }
        else {
            System.out.println("bon");
        }
        scan.close();
    }
}
