import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        String seisu = sc.next();
        String matubi = "0";
        List<String> list = Arrays.asList(seisu.split(""));
        int index = seisu.length();
        matubi = list.get(index - 1);
        if(matubi.equals("3")){
            System.out.println("bon");
        }else if((matubi.equals("0"))||(matubi.equals("1"))||(matubi.equals("6"))||(matubi.equals("8"))){
            System.out.println("pon");
        }else{
            System.out.println("hon");
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        String seisu = sc.next();
        String matubi = "0";
        List<String> list = Arrays.asList(seisu.split(""));
        int index = seisu.length();
        matubi = list.get(index - 1);
        if(matubi.equals("3")){
            System.out.println("bon");
        }else if((matubi.equals("0"))||(matubi.equals("1"))||(matubi.equals("6"))||(matubi.equals("8"))){
            System.out.println("pon");
        }else{
            System.out.println("hon");
        }
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        String seisu = sc.next();
        String matubi = "0";
        List<String> list = Arrays.asList(seisu.split(""));
        int index = seisu.length();
        matubi = list.get(index - 1);
        if(matubi.equals("3")){
            System.out.println("bon");
        }else if((matubi.equals("0"))||(matubi.equals("1"))||(matubi.equals("6"))||(matubi.equals("8"))){
            System.out.println("pon");
        }else{
            System.out.println("hon");
        }
    } main {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        String seisu = sc.next();
        String matubi = "0";
        List<String> list = Arrays.asList(seisu.split(""));
        int index = seisu.length();
        matubi = list.get(index - 1);
        if(matubi.equals("3")){
            System.out.println("bon");
        }else if((matubi.equals("0"))||(matubi.equals("1"))||(matubi.equals("6"))||(matubi.equals("8"))){
            System.out.println("pon");
        }else{
            System.out.println("hon");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String seisu = sc.next(); seisu sc.next() sc.next sc String matubi = "0"; matubi "0" List<String> list = Arrays.asList(seisu.split("")); list Arrays.asList(seisu.split("")) Arrays.asList Arrays seisu.split("") seisu.split seisu "" int index = seisu.length(); index seisu.length() seisu.length seisu matubi = list.get(index - 1) matubi list.get(index - 1) list.get list index - 1 index 1 if(matubi.equals("3")){
            System.out.println("bon");
        }else if((matubi.equals("0"))||(matubi.equals("1"))||(matubi.equals("6"))||(matubi.equals("8"))){
            System.out.println("pon");
        }else{
            System.out.println("hon");
        } matubi.equals("3") matubi.equals matubi "3" {
            System.out.println("bon");
        } System.out.println("bon") System.out.println System.out System System.out "bon" if((matubi.equals("0"))||(matubi.equals("1"))||(matubi.equals("6"))||(matubi.equals("8"))){
            System.out.println("pon");
        }else{
            System.out.println("hon");
        } (matubi.equals("0"))||(matubi.equals("1"))||(matubi.equals("6"))||(matubi.equals("8")) (matubi.equals("6")) (matubi.equals("0"))||(matubi.equals("1"))||(matubi.equals("6"))||(matubi.equals("8")) (matubi.equals("0")) matubi.equals matubi "0" (matubi.equals("1")) matubi.equals matubi "1" (matubi.equals("6")) matubi.equals matubi "6" (matubi.equals("8")) matubi.equals matubi "8" {
            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) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        String seisu = sc.next();
        String matubi = "0";
        List<String> list = Arrays.asList(seisu.split(""));
        int index = seisu.length();
        matubi = list.get(index - 1);
        if(matubi.equals("3")){
            System.out.println("bon");
        }else if((matubi.equals("0"))||(matubi.equals("1"))||(matubi.equals("6"))||(matubi.equals("8"))){
            System.out.println("pon");
        }else{
            System.out.println("hon");
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        String seisu = sc.next();
        String matubi = "0";
        List<String> list = Arrays.asList(seisu.split(""));
        int index = seisu.length();
        matubi = list.get(index - 1);
        if(matubi.equals("3")){
            System.out.println("bon");
        }else if((matubi.equals("0"))||(matubi.equals("1"))||(matubi.equals("6"))||(matubi.equals("8"))){
            System.out.println("pon");
        }else{
            System.out.println("hon");
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        String seisu = sc.next();
        String matubi = "0";
        List<String> list = Arrays.asList(seisu.split(""));
        int index = seisu.length();
        matubi = list.get(index - 1);
        if(matubi.equals("3")){
            System.out.println("bon");
        }else if((matubi.equals("0"))||(matubi.equals("1"))||(matubi.equals("6"))||(matubi.equals("8"))){
            System.out.println("pon");
        }else{
            System.out.println("hon");
        }
    }
}
