import java.util.*;

public class Main{
  public static void main(String [] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.nextLine();
    if(s == null) System.out.println("");
    else{
     	char c = s.charAt(s.length()-1);
    	String str;
		if(c == '2' || c == '4' || c == '5' || c == '7' || c == '9') str = "hon";
    	else if(c == '0' ||c == '1' || c == '6' || c =='8') str = "pon";
    	else str = "bon";
		System.out.println(str);
    }
  }
} import java.util.*; util.* java public class Main{
  public static void main(String [] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.nextLine();
    if(s == null) System.out.println("");
    else{
     	char c = s.charAt(s.length()-1);
    	String str;
		if(c == '2' || c == '4' || c == '5' || c == '7' || c == '9') str = "hon";
    	else if(c == '0' ||c == '1' || c == '6' || c =='8') str = "pon";
    	else str = "bon";
		System.out.println(str);
    }
  }
} Main public static void main(String [] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.nextLine();
    if(s == null) System.out.println("");
    else{
     	char c = s.charAt(s.length()-1);
    	String str;
		if(c == '2' || c == '4' || c == '5' || c == '7' || c == '9') str = "hon";
    	else if(c == '0' ||c == '1' || c == '6' || c =='8') str = "pon";
    	else str = "bon";
		System.out.println(str);
    }
  } main {
    Scanner sc = new Scanner(System.in);
    String s = sc.nextLine();
    if(s == null) System.out.println("");
    else{
     	char c = s.charAt(s.length()-1);
    	String str;
		if(c == '2' || c == '4' || c == '5' || c == '7' || c == '9') str = "hon";
    	else if(c == '0' ||c == '1' || c == '6' || c =='8') str = "pon";
    	else str = "bon";
		System.out.println(str);
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.nextLine(); s sc.nextLine() sc.nextLine sc if(s == null) System.out.println("");
    else{
     	char c = s.charAt(s.length()-1);
    	String str;
		if(c == '2' || c == '4' || c == '5' || c == '7' || c == '9') str = "hon";
    	else if(c == '0' ||c == '1' || c == '6' || c =='8') str = "pon";
    	else str = "bon";
		System.out.println(str);
    } s == null s null System.out.println("") System.out.println System.out System System.out "" {
     	char c = s.charAt(s.length()-1);
    	String str;
		if(c == '2' || c == '4' || c == '5' || c == '7' || c == '9') str = "hon";
    	else if(c == '0' ||c == '1' || c == '6' || c =='8') str = "pon";
    	else str = "bon";
		System.out.println(str);
    } char c = s.charAt(s.length()-1); c s.charAt(s.length()-1) s.charAt s s.length()-1 s.length() s.length s 1 String str; str if(c == '2' || c == '4' || c == '5' || c == '7' || c == '9') str = "hon";
    	else if(c == '0' ||c == '1' || c == '6' || c =='8') str = "pon";
    	else str = "bon"; c == '2' || c == '4' || c == '5' || c == '7' || c == '9' c == '7' c == '5' c == '2' || c == '4' || c == '5' || c == '7' || c == '9' c == '2' c '2' c == '4' c '4' c == '5' c '5' c == '7' c '7' c == '9' c '9' str = "hon" str "hon" if(c == '0' ||c == '1' || c == '6' || c =='8') str = "pon";
    	else str = "bon"; c == '0' ||c == '1' || c == '6' || c =='8' c == '6' c == '0' ||c == '1' || c == '6' || c =='8' c == '0' c '0' c == '1' c '1' c == '6' c '6' c =='8' c '8' str = "pon" str "pon" str = "bon" str "bon" System.out.println(str) System.out.println System.out System System.out str String [] args args public class Main{
  public static void main(String [] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.nextLine();
    if(s == null) System.out.println("");
    else{
     	char c = s.charAt(s.length()-1);
    	String str;
		if(c == '2' || c == '4' || c == '5' || c == '7' || c == '9') str = "hon";
    	else if(c == '0' ||c == '1' || c == '6' || c =='8') str = "pon";
    	else str = "bon";
		System.out.println(str);
    }
  }
} public class Main{
  public static void main(String [] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.nextLine();
    if(s == null) System.out.println("");
    else{
     	char c = s.charAt(s.length()-1);
    	String str;
		if(c == '2' || c == '4' || c == '5' || c == '7' || c == '9') str = "hon";
    	else if(c == '0' ||c == '1' || c == '6' || c =='8') str = "pon";
    	else str = "bon";
		System.out.println(str);
    }
  }
} Main
import java.util.*;

public class Main{
  public static void main(String [] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.nextLine();
    if(s == null) System.out.println("");
    else{
     	char c = s.charAt(s.length()-1);
    	String str;
		if(c == '2' || c == '4' || c == '5' || c == '7' || c == '9') str = "hon";
    	else if(c == '0' ||c == '1' || c == '6' || c =='8') str = "pon";
    	else str = "bon";
		System.out.println(str);
    }
  }
}
