import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int j = n%10;
    if (j == 2 || j == 4 || j == 5 || j == 7 || j == 9){
      System.out.println("hon");
    }else if (j == 0 || j == 1 || j == 6 || j == 8){
      System.out.println("pon");
    }else{
      System.out.println("bon");
    }
  }
} import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int j = n%10;
    if (j == 2 || j == 4 || j == 5 || j == 7 || j == 9){
      System.out.println("hon");
    }else if (j == 0 || j == 1 || j == 6 || j == 8){
      System.out.println("pon");
    }else{
      System.out.println("bon");
    }
  }
} Main public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int j = n%10;
    if (j == 2 || j == 4 || j == 5 || j == 7 || j == 9){
      System.out.println("hon");
    }else if (j == 0 || j == 1 || j == 6 || j == 8){
      System.out.println("pon");
    }else{
      System.out.println("bon");
    }
  } main {
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int j = n%10;
    if (j == 2 || j == 4 || j == 5 || j == 7 || j == 9){
      System.out.println("hon");
    }else if (j == 0 || j == 1 || j == 6 || j == 8){
      System.out.println("pon");
    }else{
      System.out.println("bon");
    }
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int j = n%10; j n%10 n 10 if (j == 2 || j == 4 || j == 5 || j == 7 || j == 9){
      System.out.println("hon");
    }else if (j == 0 || j == 1 || j == 6 || j == 8){
      System.out.println("pon");
    }else{
      System.out.println("bon");
    } j == 2 || j == 4 || j == 5 || j == 7 || j == 9 j == 7 j == 5 j == 2 || j == 4 || j == 5 || j == 7 || j == 9 j == 2 j 2 j == 4 j 4 j == 5 j 5 j == 7 j 7 j == 9 j 9 {
      System.out.println("hon");
    } System.out.println("hon") System.out.println System.out System System.out "hon" if (j == 0 || j == 1 || j == 6 || j == 8){
      System.out.println("pon");
    }else{
      System.out.println("bon");
    } j == 0 || j == 1 || j == 6 || j == 8 j == 6 j == 0 || j == 1 || j == 6 || j == 8 j == 0 j 0 j == 1 j 1 j == 6 j 6 j == 8 j 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" String[] args args public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int j = n%10;
    if (j == 2 || j == 4 || j == 5 || j == 7 || j == 9){
      System.out.println("hon");
    }else if (j == 0 || j == 1 || j == 6 || j == 8){
      System.out.println("pon");
    }else{
      System.out.println("bon");
    }
  }
} public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int j = n%10;
    if (j == 2 || j == 4 || j == 5 || j == 7 || j == 9){
      System.out.println("hon");
    }else if (j == 0 || j == 1 || j == 6 || j == 8){
      System.out.println("pon");
    }else{
      System.out.println("bon");
    }
  }
} Main
import java.util.Scanner;
public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int j = n%10;
    if (j == 2 || j == 4 || j == 5 || j == 7 || j == 9){
      System.out.println("hon");
    }else if (j == 0 || j == 1 || j == 6 || j == 8){
      System.out.println("pon");
    }else{
      System.out.println("bon");
    }
  }
}