import java.util.*;
 
public class Main {
	public static void main (String[] args) {
		Scanner in = new Scanner(System.in);
		
		int nam = in.nextInt();
        int len = String.valueOf(nam).length();
        
        if(len == 1){nam = nam;}
        if(len == 2){nam = nam%10;}
        if(len == 3){nam = nam%10;}

        if(nam == 3){System.out.print("bon");}
        else if(nam == 0 || nam == 1 || nam == 6 || nam == 8){System.out.print("pon");}
        else{System.out.print("hon");}
      
	}
} import java.util.*; util.* java public class Main {
	public static void main (String[] args) {
		Scanner in = new Scanner(System.in);
		
		int nam = in.nextInt();
        int len = String.valueOf(nam).length();
        
        if(len == 1){nam = nam;}
        if(len == 2){nam = nam%10;}
        if(len == 3){nam = nam%10;}

        if(nam == 3){System.out.print("bon");}
        else if(nam == 0 || nam == 1 || nam == 6 || nam == 8){System.out.print("pon");}
        else{System.out.print("hon");}
      
	}
} Main public static void main (String[] args) {
		Scanner in = new Scanner(System.in);
		
		int nam = in.nextInt();
        int len = String.valueOf(nam).length();
        
        if(len == 1){nam = nam;}
        if(len == 2){nam = nam%10;}
        if(len == 3){nam = nam%10;}

        if(nam == 3){System.out.print("bon");}
        else if(nam == 0 || nam == 1 || nam == 6 || nam == 8){System.out.print("pon");}
        else{System.out.print("hon");}
      
	} main {
		Scanner in = new Scanner(System.in);
		
		int nam = in.nextInt();
        int len = String.valueOf(nam).length();
        
        if(len == 1){nam = nam;}
        if(len == 2){nam = nam%10;}
        if(len == 3){nam = nam%10;}

        if(nam == 3){System.out.print("bon");}
        else if(nam == 0 || nam == 1 || nam == 6 || nam == 8){System.out.print("pon");}
        else{System.out.print("hon");}
      
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int nam = in.nextInt(); nam in.nextInt() in.nextInt in int len = String.valueOf(nam).length(); len String.valueOf(nam).length() String.valueOf(nam).length String.valueOf(nam) String.valueOf String nam if(len == 1){nam = nam;} len == 1 len 1 {nam = nam;} nam = nam nam nam if(len == 2){nam = nam%10;} len == 2 len 2 {nam = nam%10;} nam = nam%10 nam nam%10 nam 10 if(len == 3){nam = nam%10;} len == 3 len 3 {nam = nam%10;} nam = nam%10 nam nam%10 nam 10 if(nam == 3){System.out.print("bon");}
        else if(nam == 0 || nam == 1 || nam == 6 || nam == 8){System.out.print("pon");}
        else{System.out.print("hon");} nam == 3 nam 3 {System.out.print("bon");} System.out.print("bon") System.out.print System.out System System.out "bon" if(nam == 0 || nam == 1 || nam == 6 || nam == 8){System.out.print("pon");}
        else{System.out.print("hon");} nam == 0 || nam == 1 || nam == 6 || nam == 8 nam == 6 nam == 0 || nam == 1 || nam == 6 || nam == 8 nam == 0 nam 0 nam == 1 nam 1 nam == 6 nam 6 nam == 8 nam 8 {System.out.print("pon");} System.out.print("pon") System.out.print System.out System System.out "pon" {System.out.print("hon");} System.out.print("hon") System.out.print System.out System System.out "hon" String[] args args public class Main {
	public static void main (String[] args) {
		Scanner in = new Scanner(System.in);
		
		int nam = in.nextInt();
        int len = String.valueOf(nam).length();
        
        if(len == 1){nam = nam;}
        if(len == 2){nam = nam%10;}
        if(len == 3){nam = nam%10;}

        if(nam == 3){System.out.print("bon");}
        else if(nam == 0 || nam == 1 || nam == 6 || nam == 8){System.out.print("pon");}
        else{System.out.print("hon");}
      
	}
} public class Main {
	public static void main (String[] args) {
		Scanner in = new Scanner(System.in);
		
		int nam = in.nextInt();
        int len = String.valueOf(nam).length();
        
        if(len == 1){nam = nam;}
        if(len == 2){nam = nam%10;}
        if(len == 3){nam = nam%10;}

        if(nam == 3){System.out.print("bon");}
        else if(nam == 0 || nam == 1 || nam == 6 || nam == 8){System.out.print("pon");}
        else{System.out.print("hon");}
      
	}
} Main
import java.util.*;
 
public class Main {
	public static void main (String[] args) {
		Scanner in = new Scanner(System.in);
		
		int nam = in.nextInt();
        int len = String.valueOf(nam).length();
        
        if(len == 1){nam = nam;}
        if(len == 2){nam = nam%10;}
        if(len == 3){nam = nam%10;}

        if(nam == 3){System.out.print("bon");}
        else if(nam == 0 || nam == 1 || nam == 6 || nam == 8){System.out.print("pon");}
        else{System.out.print("hon");}
      
	}
}
