import java.util.Scanner;

class Main {

  public static void main(String[] args) {
    new Main().run();
  }

  private static Scanner sc;

  private void run() {
    sc = new Scanner(System.in);
    String N = sc.next();
    char c = N.charAt(N.length() - 1);
    if (c == '2' || c == '4' || c == '5' || c == '7' || c == '9') {
      System.out.println("hon");
    } else if (c == '0' || c == '1' || c == '6' || c == '8') {
      System.out.println("pon");
    } else {
      System.out.println("bon");
    }
  }
} import java.util.Scanner; Scanner java.util class Main {

  public static void main(String[] args) {
    new Main().run();
  }

  private static Scanner sc;

  private void run() {
    sc = new Scanner(System.in);
    String N = sc.next();
    char c = N.charAt(N.length() - 1);
    if (c == '2' || c == '4' || c == '5' || c == '7' || c == '9') {
      System.out.println("hon");
    } else if (c == '0' || c == '1' || c == '6' || c == '8') {
      System.out.println("pon");
    } else {
      System.out.println("bon");
    }
  }
} Main private static Scanner sc; sc public static void main(String[] args) {
    new Main().run();
  } main {
    new Main().run();
  } new Main().run() new Main().run new Main() String[] args args private void run() {
    sc = new Scanner(System.in);
    String N = sc.next();
    char c = N.charAt(N.length() - 1);
    if (c == '2' || c == '4' || c == '5' || c == '7' || c == '9') {
      System.out.println("hon");
    } else if (c == '0' || c == '1' || c == '6' || c == '8') {
      System.out.println("pon");
    } else {
      System.out.println("bon");
    }
  } run {
    sc = new Scanner(System.in);
    String N = sc.next();
    char c = N.charAt(N.length() - 1);
    if (c == '2' || c == '4' || c == '5' || c == '7' || c == '9') {
      System.out.println("hon");
    } else if (c == '0' || c == '1' || c == '6' || c == '8') {
      System.out.println("pon");
    } else {
      System.out.println("bon");
    }
  } sc = new Scanner(System.in) sc new Scanner(System.in) String N = sc.next(); N sc.next() sc.next sc char c = N.charAt(N.length() - 1); c N.charAt(N.length() - 1) N.charAt N N.length() - 1 N.length() N.length N 1 if (c == '2' || c == '4' || c == '5' || c == '7' || c == '9') {
      System.out.println("hon");
    } else if (c == '0' || c == '1' || c == '6' || c == '8') {
      System.out.println("pon");
    } else {
      System.out.println("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' {
      System.out.println("hon");
    } System.out.println("hon") System.out.println System.out System System.out "hon" if (c == '0' || c == '1' || c == '6' || c == '8') {
      System.out.println("pon");
    } else {
      System.out.println("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' {
      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"
import java.util.Scanner;

class Main {

  public static void main(String[] args) {
    new Main().run();
  }

  private static Scanner sc;

  private void run() {
    sc = new Scanner(System.in);
    String N = sc.next();
    char c = N.charAt(N.length() - 1);
    if (c == '2' || c == '4' || c == '5' || c == '7' || c == '9') {
      System.out.println("hon");
    } else if (c == '0' || c == '1' || c == '6' || c == '8') {
      System.out.println("pon");
    } else {
      System.out.println("bon");
    }
  }
}
