import java.util.*;

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

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    N %= 10;
    int[] a = {2,4,5,7,9};
    int[] b = {0,1,6,8};
    int[] c = {3};
    for (int x:a) {
      if (N == x) System.out.println("hon");
    }
    for (int x:b) {
      if (N == x) System.out.println("pon");
    }
    for (int x:c) {
      if (N == x) System.out.println("bon");
    }
  }
}