import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    int len = s.length();
    s = s.substring(len-1,len);
    if(s.equals("2") ||s.equals("4") ||s.equals("5") ||s.equals("7") ||s.equals("9")){
      System.out.println("hon");
    }else if(s.equals("3")){
      System.out.println("bon");
    }else{
      System.out.println("pon");
    }
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    int len = s.length();
    s = s.substring(len-1,len);
    if(s.equals("2") ||s.equals("4") ||s.equals("5") ||s.equals("7") ||s.equals("9")){
      System.out.println("hon");
    }else if(s.equals("3")){
      System.out.println("bon");
    }else{
      System.out.println("pon");
    }
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    int len = s.length();
    s = s.substring(len-1,len);
    if(s.equals("2") ||s.equals("4") ||s.equals("5") ||s.equals("7") ||s.equals("9")){
      System.out.println("hon");
    }else if(s.equals("3")){
      System.out.println("bon");
    }else{
      System.out.println("pon");
    }
  } main {
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    int len = s.length();
    s = s.substring(len-1,len);
    if(s.equals("2") ||s.equals("4") ||s.equals("5") ||s.equals("7") ||s.equals("9")){
      System.out.println("hon");
    }else if(s.equals("3")){
      System.out.println("bon");
    }else{
      System.out.println("pon");
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int len = s.length(); len s.length() s.length s s = s.substring(len-1,len) s s.substring(len-1,len) s.substring s len-1 len 1 len if(s.equals("2") ||s.equals("4") ||s.equals("5") ||s.equals("7") ||s.equals("9")){
      System.out.println("hon");
    }else if(s.equals("3")){
      System.out.println("bon");
    }else{
      System.out.println("pon");
    } s.equals("2") ||s.equals("4") ||s.equals("5") ||s.equals("7") ||s.equals("9") s.equals("7") s.equals("5") s.equals("2") ||s.equals("4") ||s.equals("5") ||s.equals("7") ||s.equals("9") s.equals("2") s.equals s "2" s.equals("4") s.equals s "4" s.equals("5") s.equals s "5" s.equals("7") s.equals s "7" s.equals("9") s.equals s "9" {
      System.out.println("hon");
    } System.out.println("hon") System.out.println System.out System System.out "hon" if(s.equals("3")){
      System.out.println("bon");
    }else{
      System.out.println("pon");
    } s.equals("3") s.equals s "3" {
      System.out.println("bon");
    } System.out.println("bon") System.out.println System.out System System.out "bon" {
      System.out.println("pon");
    } 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);
    String s = sc.next();
    int len = s.length();
    s = s.substring(len-1,len);
    if(s.equals("2") ||s.equals("4") ||s.equals("5") ||s.equals("7") ||s.equals("9")){
      System.out.println("hon");
    }else if(s.equals("3")){
      System.out.println("bon");
    }else{
      System.out.println("pon");
    }
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    int len = s.length();
    s = s.substring(len-1,len);
    if(s.equals("2") ||s.equals("4") ||s.equals("5") ||s.equals("7") ||s.equals("9")){
      System.out.println("hon");
    }else if(s.equals("3")){
      System.out.println("bon");
    }else{
      System.out.println("pon");
    }
  }
} Main
import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    int len = s.length();
    s = s.substring(len-1,len);
    if(s.equals("2") ||s.equals("4") ||s.equals("5") ||s.equals("7") ||s.equals("9")){
      System.out.println("hon");
    }else if(s.equals("3")){
      System.out.println("bon");
    }else{
      System.out.println("pon");
    }
  }
}
