import java.lang.reflect.Array;
import java.util.*;
import java.io.*;
import java.lang.*;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        String inp = sc.next();

        int a = Integer.parseInt(String.valueOf(inp.charAt(inp.length() - 1)));

        if (a== 2|| a== 4|| a== 5|| a== 7|| a== 9)
            System.out.println("hon");
        else if (a== 0|| a== 1|| a== 6|| a== 8)
            System.out.println("pon");
        else if (a== 3)
            System.out.println("bon");
    }
} import java.lang.reflect.Array; Array java.lang.reflect import java.util.*; util.* java import java.io.*; io.* java import java.lang.*; lang.* java public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        String inp = sc.next();

        int a = Integer.parseInt(String.valueOf(inp.charAt(inp.length() - 1)));

        if (a== 2|| a== 4|| a== 5|| a== 7|| a== 9)
            System.out.println("hon");
        else if (a== 0|| a== 1|| a== 6|| a== 8)
            System.out.println("pon");
        else if (a== 3)
            System.out.println("bon");
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        String inp = sc.next();

        int a = Integer.parseInt(String.valueOf(inp.charAt(inp.length() - 1)));

        if (a== 2|| a== 4|| a== 5|| a== 7|| a== 9)
            System.out.println("hon");
        else if (a== 0|| a== 1|| a== 6|| a== 8)
            System.out.println("pon");
        else if (a== 3)
            System.out.println("bon");
    } main {
        Scanner sc = new Scanner(System.in);

        String inp = sc.next();

        int a = Integer.parseInt(String.valueOf(inp.charAt(inp.length() - 1)));

        if (a== 2|| a== 4|| a== 5|| a== 7|| a== 9)
            System.out.println("hon");
        else if (a== 0|| a== 1|| a== 6|| a== 8)
            System.out.println("pon");
        else if (a== 3)
            System.out.println("bon");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String inp = sc.next(); inp sc.next() sc.next sc int a = Integer.parseInt(String.valueOf(inp.charAt(inp.length() - 1))); a Integer.parseInt(String.valueOf(inp.charAt(inp.length() - 1))) Integer.parseInt Integer String.valueOf(inp.charAt(inp.length() - 1)) String.valueOf String inp.charAt(inp.length() - 1) inp.charAt inp inp.length() - 1 inp.length() inp.length inp 1 if (a== 2|| a== 4|| a== 5|| a== 7|| a== 9)
            System.out.println("hon");
        else if (a== 0|| a== 1|| a== 6|| a== 8)
            System.out.println("pon");
        else if (a== 3)
            System.out.println("bon"); a== 2|| a== 4|| a== 5|| a== 7|| a== 9 a== 7 a== 5 a== 2|| a== 4|| a== 5|| a== 7|| a== 9 a== 2 a 2 a== 4 a 4 a== 5 a 5 a== 7 a 7 a== 9 a 9 System.out.println("hon") System.out.println System.out System System.out "hon" if (a== 0|| a== 1|| a== 6|| a== 8)
            System.out.println("pon");
        else if (a== 3)
            System.out.println("bon"); a== 0|| a== 1|| a== 6|| a== 8 a== 6 a== 0|| a== 1|| a== 6|| a== 8 a== 0 a 0 a== 1 a 1 a== 6 a 6 a== 8 a 8 System.out.println("pon") System.out.println System.out System System.out "pon" if (a== 3)
            System.out.println("bon"); a== 3 a 3 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);

        String inp = sc.next();

        int a = Integer.parseInt(String.valueOf(inp.charAt(inp.length() - 1)));

        if (a== 2|| a== 4|| a== 5|| a== 7|| a== 9)
            System.out.println("hon");
        else if (a== 0|| a== 1|| a== 6|| a== 8)
            System.out.println("pon");
        else if (a== 3)
            System.out.println("bon");
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        String inp = sc.next();

        int a = Integer.parseInt(String.valueOf(inp.charAt(inp.length() - 1)));

        if (a== 2|| a== 4|| a== 5|| a== 7|| a== 9)
            System.out.println("hon");
        else if (a== 0|| a== 1|| a== 6|| a== 8)
            System.out.println("pon");
        else if (a== 3)
            System.out.println("bon");
    }
} Main
import java.lang.reflect.Array;
import java.util.*;
import java.io.*;
import java.lang.*;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        String inp = sc.next();

        int a = Integer.parseInt(String.valueOf(inp.charAt(inp.length() - 1)));

        if (a== 2|| a== 4|| a== 5|| a== 7|| a== 9)
            System.out.println("hon");
        else if (a== 0|| a== 1|| a== 6|| a== 8)
            System.out.println("pon");
        else if (a== 3)
            System.out.println("bon");
    }
}
