import java.util.Scanner;
public class Main {
public static void main(final String[] args) {
    final Scanner scan = new Scanner(System.in);

    final int N = scan.nextInt();

    final int num = N % 10;
scan.close();
if((num==2) ||(num==4)||(num==5)||(num==7)||(num==9)){
    System.out.println("hon");
}else if((num==0)||(num==1)||(num==6)||(num==8)){
    System.out.println("pon");
}else 
System.out.println("bon");
}
} import java.util.Scanner; Scanner java.util public class Main {
public static void main(final String[] args) {
    final Scanner scan = new Scanner(System.in);

    final int N = scan.nextInt();

    final int num = N % 10;
scan.close();
if((num==2) ||(num==4)||(num==5)||(num==7)||(num==9)){
    System.out.println("hon");
}else if((num==0)||(num==1)||(num==6)||(num==8)){
    System.out.println("pon");
}else 
System.out.println("bon");
}
} Main public static void main(final String[] args) {
    final Scanner scan = new Scanner(System.in);

    final int N = scan.nextInt();

    final int num = N % 10;
scan.close();
if((num==2) ||(num==4)||(num==5)||(num==7)||(num==9)){
    System.out.println("hon");
}else if((num==0)||(num==1)||(num==6)||(num==8)){
    System.out.println("pon");
}else 
System.out.println("bon");
} main {
    final Scanner scan = new Scanner(System.in);

    final int N = scan.nextInt();

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

    final int N = scan.nextInt();

    final int num = N % 10;
scan.close();
if((num==2) ||(num==4)||(num==5)||(num==7)||(num==9)){
    System.out.println("hon");
}else if((num==0)||(num==1)||(num==6)||(num==8)){
    System.out.println("pon");
}else 
System.out.println("bon");
}
} public class Main {
public static void main(final String[] args) {
    final Scanner scan = new Scanner(System.in);

    final int N = scan.nextInt();

    final int num = N % 10;
scan.close();
if((num==2) ||(num==4)||(num==5)||(num==7)||(num==9)){
    System.out.println("hon");
}else if((num==0)||(num==1)||(num==6)||(num==8)){
    System.out.println("pon");
}else 
System.out.println("bon");
}
} Main
import java.util.Scanner;
public class Main {
public static void main(final String[] args) {
    final Scanner scan = new Scanner(System.in);

    final int N = scan.nextInt();

    final int num = N % 10;
scan.close();
if((num==2) ||(num==4)||(num==5)||(num==7)||(num==9)){
    System.out.println("hon");
}else if((num==0)||(num==1)||(num==6)||(num==8)){
    System.out.println("pon");
}else 
System.out.println("bon");
}
}