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