
import java.util.Scanner;
import java.util.Vector;

public class Main {

    public static void main(String[] args) {

	Scanner sc=new Scanner(System.in);

	long  n=sc.nextInt();
	int d= (int) (n%10);
	if(d==2||d==4||d==5||d==7||d==9)
      {
          System.out.println("hon");
      }
	else if(d==0||d==1||d==6||d==8)
      {
          System.out.println("pon");
      }
	else if(d==3)
      {
          System.out.println("bon");
      }


    }
} import java.util.Scanner; Scanner java.util import java.util.Vector; Vector java.util public class Main {

    public static void main(String[] args) {

	Scanner sc=new Scanner(System.in);

	long  n=sc.nextInt();
	int d= (int) (n%10);
	if(d==2||d==4||d==5||d==7||d==9)
      {
          System.out.println("hon");
      }
	else if(d==0||d==1||d==6||d==8)
      {
          System.out.println("pon");
      }
	else if(d==3)
      {
          System.out.println("bon");
      }


    }
} Main public static void main(String[] args) {

	Scanner sc=new Scanner(System.in);

	long  n=sc.nextInt();
	int d= (int) (n%10);
	if(d==2||d==4||d==5||d==7||d==9)
      {
          System.out.println("hon");
      }
	else if(d==0||d==1||d==6||d==8)
      {
          System.out.println("pon");
      }
	else if(d==3)
      {
          System.out.println("bon");
      }


    } main {

	Scanner sc=new Scanner(System.in);

	long  n=sc.nextInt();
	int d= (int) (n%10);
	if(d==2||d==4||d==5||d==7||d==9)
      {
          System.out.println("hon");
      }
	else if(d==0||d==1||d==6||d==8)
      {
          System.out.println("pon");
      }
	else if(d==3)
      {
          System.out.println("bon");
      }


    } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) long  n=sc.nextInt(); n sc.nextInt() sc.nextInt sc int d= (int) (n%10); d (int) (n%10) n 10 if(d==2||d==4||d==5||d==7||d==9)
      {
          System.out.println("hon");
      }
	else if(d==0||d==1||d==6||d==8)
      {
          System.out.println("pon");
      }
	else if(d==3)
      {
          System.out.println("bon");
      } d==2||d==4||d==5||d==7||d==9 d==7 d==5 d==2||d==4||d==5||d==7||d==9 d==2 d 2 d==4 d 4 d==5 d 5 d==7 d 7 d==9 d 9 {
          System.out.println("hon");
      } System.out.println("hon") System.out.println System.out System System.out "hon" if(d==0||d==1||d==6||d==8)
      {
          System.out.println("pon");
      }
	else if(d==3)
      {
          System.out.println("bon");
      } d==0||d==1||d==6||d==8 d==6 d==0||d==1||d==6||d==8 d==0 d 0 d==1 d 1 d==6 d 6 d==8 d 8 {
          System.out.println("pon");
      } System.out.println("pon") System.out.println System.out System System.out "pon" if(d==3)
      {
          System.out.println("bon");
      } d==3 d 3 {
          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 sc=new Scanner(System.in);

	long  n=sc.nextInt();
	int d= (int) (n%10);
	if(d==2||d==4||d==5||d==7||d==9)
      {
          System.out.println("hon");
      }
	else if(d==0||d==1||d==6||d==8)
      {
          System.out.println("pon");
      }
	else if(d==3)
      {
          System.out.println("bon");
      }


    }
} public class Main {

    public static void main(String[] args) {

	Scanner sc=new Scanner(System.in);

	long  n=sc.nextInt();
	int d= (int) (n%10);
	if(d==2||d==4||d==5||d==7||d==9)
      {
          System.out.println("hon");
      }
	else if(d==0||d==1||d==6||d==8)
      {
          System.out.println("pon");
      }
	else if(d==3)
      {
          System.out.println("bon");
      }


    }
} Main

import java.util.Scanner;
import java.util.Vector;

public class Main {

    public static void main(String[] args) {

	Scanner sc=new Scanner(System.in);

	long  n=sc.nextInt();
	int d= (int) (n%10);
	if(d==2||d==4||d==5||d==7||d==9)
      {
          System.out.println("hon");
      }
	else if(d==0||d==1||d==6||d==8)
      {
          System.out.println("pon");
      }
	else if(d==3)
      {
          System.out.println("bon");
      }


    }
}
