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