import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String[] arr = new String[]{"pon","pon","hon","bon","hon","hon","pon","hon","pon","hon"};
    System.out.println(arr[sc.nextInt()%10]);
  }
} import java.util.Scanner; Scanner java.util public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String[] arr = new String[]{"pon","pon","hon","bon","hon","hon","pon","hon","pon","hon"};
    System.out.println(arr[sc.nextInt()%10]);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String[] arr = new String[]{"pon","pon","hon","bon","hon","hon","pon","hon","pon","hon"};
    System.out.println(arr[sc.nextInt()%10]);
  } main {
    Scanner sc = new Scanner(System.in);
    String[] arr = new String[]{"pon","pon","hon","bon","hon","hon","pon","hon","pon","hon"};
    System.out.println(arr[sc.nextInt()%10]);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] arr = new String[]{"pon","pon","hon","bon","hon","hon","pon","hon","pon","hon"}; arr new String[]{"pon","pon","hon","bon","hon","hon","pon","hon","pon","hon"} System.out.println(arr[sc.nextInt()%10]) System.out.println System.out System System.out arr[sc.nextInt()%10] arr sc.nextInt()%10 sc.nextInt() sc.nextInt sc 10 String[] args args public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String[] arr = new String[]{"pon","pon","hon","bon","hon","hon","pon","hon","pon","hon"};
    System.out.println(arr[sc.nextInt()%10]);
  }
} public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String[] arr = new String[]{"pon","pon","hon","bon","hon","hon","pon","hon","pon","hon"};
    System.out.println(arr[sc.nextInt()%10]);
  }
} Main
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String[] arr = new String[]{"pon","pon","hon","bon","hon","hon","pon","hon","pon","hon"};
    System.out.println(arr[sc.nextInt()%10]);
  }
}