import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
import java.util.Set;

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

        Scanner scan = new Scanner(System.in);

        int N = scan.nextInt();
        //int M = scan.nextInt();
        ArrayList al1 = new ArrayList(Arrays.asList(0,1,6,8));
        int num = N%10;
         if(num==3){
             System.out.println("bon");
         }else if(al1.contains(num)) {
             System.out.println("pon");
         }
         else{
             System.out.println("hon");
         }
    }
} import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util import java.util.Set; Set java.util public class Main {
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);

        int N = scan.nextInt();
        //int M = scan.nextInt();
        ArrayList al1 = new ArrayList(Arrays.asList(0,1,6,8));
        int num = N%10;
         if(num==3){
             System.out.println("bon");
         }else if(al1.contains(num)) {
             System.out.println("pon");
         }
         else{
             System.out.println("hon");
         }
    }
} Main public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);

        int N = scan.nextInt();
        //int M = scan.nextInt();
        ArrayList al1 = new ArrayList(Arrays.asList(0,1,6,8));
        int num = N%10;
         if(num==3){
             System.out.println("bon");
         }else if(al1.contains(num)) {
             System.out.println("pon");
         }
         else{
             System.out.println("hon");
         }
    } main {

        Scanner scan = new Scanner(System.in);

        int N = scan.nextInt();
        //int M = scan.nextInt();
        ArrayList al1 = new ArrayList(Arrays.asList(0,1,6,8));
        int num = N%10;
         if(num==3){
             System.out.println("bon");
         }else if(al1.contains(num)) {
             System.out.println("pon");
         }
         else{
             System.out.println("hon");
         }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan ArrayList al1 = new ArrayList(Arrays.asList(0,1,6,8)); al1 new ArrayList(Arrays.asList(0,1,6,8)) int num = N%10; num N%10 N 10 if(num==3){
             System.out.println("bon");
         }else if(al1.contains(num)) {
             System.out.println("pon");
         }
         else{
             System.out.println("hon");
         } num==3 num 3 {
             System.out.println("bon");
         } System.out.println("bon") System.out.println System.out System System.out "bon" if(al1.contains(num)) {
             System.out.println("pon");
         }
         else{
             System.out.println("hon");
         } al1.contains(num) al1.contains al1 num {
             System.out.println("pon");
         } System.out.println("pon") System.out.println System.out System System.out "pon" {
             System.out.println("hon");
         } System.out.println("hon") System.out.println System.out System System.out "hon" String[] args args public class Main {
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);

        int N = scan.nextInt();
        //int M = scan.nextInt();
        ArrayList al1 = new ArrayList(Arrays.asList(0,1,6,8));
        int num = N%10;
         if(num==3){
             System.out.println("bon");
         }else if(al1.contains(num)) {
             System.out.println("pon");
         }
         else{
             System.out.println("hon");
         }
    }
} public class Main {
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);

        int N = scan.nextInt();
        //int M = scan.nextInt();
        ArrayList al1 = new ArrayList(Arrays.asList(0,1,6,8));
        int num = N%10;
         if(num==3){
             System.out.println("bon");
         }else if(al1.contains(num)) {
             System.out.println("pon");
         }
         else{
             System.out.println("hon");
         }
    }
} Main
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
import java.util.Set;

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

        Scanner scan = new Scanner(System.in);

        int N = scan.nextInt();
        //int M = scan.nextInt();
        ArrayList al1 = new ArrayList(Arrays.asList(0,1,6,8));
        int num = N%10;
         if(num==3){
             System.out.println("bon");
         }else if(al1.contains(num)) {
             System.out.println("pon");
         }
         else{
             System.out.println("hon");
         }
    }
}