import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String str = sc.nextLine();
    sc.close();
    if(str.endsWith("3")) {
      System.out.println("bon");
    }else if(str.endsWith("0")||str.endsWith("1")||str.endsWith("6")||str.endsWith("8")) {
      System.out.println("pon");
    }else {
      System.out.println("hon");
    }

  }

} import java.util.Scanner; Scanner java.util public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String str = sc.nextLine();
    sc.close();
    if(str.endsWith("3")) {
      System.out.println("bon");
    }else if(str.endsWith("0")||str.endsWith("1")||str.endsWith("6")||str.endsWith("8")) {
      System.out.println("pon");
    }else {
      System.out.println("hon");
    }

  }

} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String str = sc.nextLine();
    sc.close();
    if(str.endsWith("3")) {
      System.out.println("bon");
    }else if(str.endsWith("0")||str.endsWith("1")||str.endsWith("6")||str.endsWith("8")) {
      System.out.println("pon");
    }else {
      System.out.println("hon");
    }

  } main {
    Scanner sc = new Scanner(System.in);
    String str = sc.nextLine();
    sc.close();
    if(str.endsWith("3")) {
      System.out.println("bon");
    }else if(str.endsWith("0")||str.endsWith("1")||str.endsWith("6")||str.endsWith("8")) {
      System.out.println("pon");
    }else {
      System.out.println("hon");
    }

  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.nextLine(); str sc.nextLine() sc.nextLine sc sc.close() sc.close sc if(str.endsWith("3")) {
      System.out.println("bon");
    }else if(str.endsWith("0")||str.endsWith("1")||str.endsWith("6")||str.endsWith("8")) {
      System.out.println("pon");
    }else {
      System.out.println("hon");
    } str.endsWith("3") str.endsWith str "3" {
      System.out.println("bon");
    } System.out.println("bon") System.out.println System.out System System.out "bon" if(str.endsWith("0")||str.endsWith("1")||str.endsWith("6")||str.endsWith("8")) {
      System.out.println("pon");
    }else {
      System.out.println("hon");
    } str.endsWith("0")||str.endsWith("1")||str.endsWith("6")||str.endsWith("8") str.endsWith("6") str.endsWith("0")||str.endsWith("1")||str.endsWith("6")||str.endsWith("8") str.endsWith("0") str.endsWith str "0" str.endsWith("1") str.endsWith str "1" str.endsWith("6") str.endsWith str "6" str.endsWith("8") str.endsWith str "8" {
      System.out.println("pon");
    } System.out.println("pon") System.out.println System.out System System.out "pon" {
      System.out.println("hon");
    } System.out.println("hon") System.out.println System.out System System.out "hon" String[] args args public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String str = sc.nextLine();
    sc.close();
    if(str.endsWith("3")) {
      System.out.println("bon");
    }else if(str.endsWith("0")||str.endsWith("1")||str.endsWith("6")||str.endsWith("8")) {
      System.out.println("pon");
    }else {
      System.out.println("hon");
    }

  }

} public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String str = sc.nextLine();
    sc.close();
    if(str.endsWith("3")) {
      System.out.println("bon");
    }else if(str.endsWith("0")||str.endsWith("1")||str.endsWith("6")||str.endsWith("8")) {
      System.out.println("pon");
    }else {
      System.out.println("hon");
    }

  }

} Main
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String str = sc.nextLine();
    sc.close();
    if(str.endsWith("3")) {
      System.out.println("bon");
    }else if(str.endsWith("0")||str.endsWith("1")||str.endsWith("6")||str.endsWith("8")) {
      System.out.println("pon");
    }else {
      System.out.println("hon");
    }

  }

}
