import java.util.Scanner;

public class Main {

    private enum hon {
        HON_2(2),

        HON_4(4),

        HON_5(5),

        HON_7(7),

        HON_9(9);

        private int m_iHon;

        hon(int i) {
            m_iHon = i;
        }
    }

    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);

        String sInput = sc.nextLine();
        String[] sInputArray = sInput.split("");
        String sCompVal = sInputArray[sInput.length() - 1];
        int iComp = Integer.parseInt(sCompVal);

        String sResult = "";
        for (hon h : hon.values()) {
            if (h.m_iHon == iComp) {
                sResult = "hon";
            }
        }

        if (!sResult.isEmpty()) {
            System.out.print(sResult);
            return;
        }

        if (3 == iComp) {
            sResult = "bon";
        } else {
            sResult = "pon";
        }

        System.out.print(sResult);

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

    private enum hon {
        HON_2(2),

        HON_4(4),

        HON_5(5),

        HON_7(7),

        HON_9(9);

        private int m_iHon;

        hon(int i) {
            m_iHon = i;
        }
    }

    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);

        String sInput = sc.nextLine();
        String[] sInputArray = sInput.split("");
        String sCompVal = sInputArray[sInput.length() - 1];
        int iComp = Integer.parseInt(sCompVal);

        String sResult = "";
        for (hon h : hon.values()) {
            if (h.m_iHon == iComp) {
                sResult = "hon";
            }
        }

        if (!sResult.isEmpty()) {
            System.out.print(sResult);
            return;
        }

        if (3 == iComp) {
            sResult = "bon";
        } else {
            sResult = "pon";
        }

        System.out.print(sResult);

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

        Scanner sc = new Scanner(System.in);

        String sInput = sc.nextLine();
        String[] sInputArray = sInput.split("");
        String sCompVal = sInputArray[sInput.length() - 1];
        int iComp = Integer.parseInt(sCompVal);

        String sResult = "";
        for (hon h : hon.values()) {
            if (h.m_iHon == iComp) {
                sResult = "hon";
            }
        }

        if (!sResult.isEmpty()) {
            System.out.print(sResult);
            return;
        }

        if (3 == iComp) {
            sResult = "bon";
        } else {
            sResult = "pon";
        }

        System.out.print(sResult);

    } main {

        Scanner sc = new Scanner(System.in);

        String sInput = sc.nextLine();
        String[] sInputArray = sInput.split("");
        String sCompVal = sInputArray[sInput.length() - 1];
        int iComp = Integer.parseInt(sCompVal);

        String sResult = "";
        for (hon h : hon.values()) {
            if (h.m_iHon == iComp) {
                sResult = "hon";
            }
        }

        if (!sResult.isEmpty()) {
            System.out.print(sResult);
            return;
        }

        if (3 == iComp) {
            sResult = "bon";
        } else {
            sResult = "pon";
        }

        System.out.print(sResult);

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String sInput = sc.nextLine(); sInput sc.nextLine() sc.nextLine sc String[] sInputArray = sInput.split(""); sInputArray sInput.split("") sInput.split sInput "" String sCompVal = sInputArray[sInput.length() - 1]; sCompVal sInputArray[sInput.length() - 1] sInputArray sInput.length() - 1 sInput.length() sInput.length sInput 1 int iComp = Integer.parseInt(sCompVal); iComp Integer.parseInt(sCompVal) Integer.parseInt Integer sCompVal String sResult = ""; sResult "" for (hon h : hon.values()) {
            if (h.m_iHon == iComp) {
                sResult = "hon";
            }
        } hon h hon.values() hon.values hon {
            if (h.m_iHon == iComp) {
                sResult = "hon";
            }
        } {
            if (h.m_iHon == iComp) {
                sResult = "hon";
            }
        } if (h.m_iHon == iComp) {
                sResult = "hon";
            } h.m_iHon == iComp h.m_iHon h h.m_iHon iComp {
                sResult = "hon";
            } sResult = "hon" sResult "hon" if (!sResult.isEmpty()) {
            System.out.print(sResult);
            return;
        } !sResult.isEmpty() sResult.isEmpty() sResult.isEmpty sResult {
            System.out.print(sResult);
            return;
        } System.out.print(sResult) System.out.print System.out System System.out sResult return; if (3 == iComp) {
            sResult = "bon";
        } else {
            sResult = "pon";
        } 3 == iComp 3 iComp {
            sResult = "bon";
        } sResult = "bon" sResult "bon" {
            sResult = "pon";
        } sResult = "pon" sResult "pon" System.out.print(sResult) System.out.print System.out System System.out sResult String[] args args private enum hon {
        HON_2(2),

        HON_4(4),

        HON_5(5),

        HON_7(7),

        HON_9(9);

        private int m_iHon;

        hon(int i) {
            m_iHon = i;
        }
    } hon HON_2(2) HON_2 HON_4(4) HON_4 HON_5(5) HON_5 HON_7(7) HON_7 HON_9(9) HON_9 private int m_iHon; m_iHon hon(int i) {
            m_iHon = i;
        } hon {
            m_iHon = i;
        } m_iHon = i m_iHon i int i i import java.util.Scanner;

publi import java.util.Scanner;

public class Main {

    private enum hon {
        HON_2(2),

     public class Main {

    private enum hon {
        HON_2(2),

        HON_4(4),

        HON_5(5),

        HON_7(7),

        HON_9(9);

        private int m_iHon;

        hon(int i) {
            m_iHon = i;
        }
    }

    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);

        String sInput = sc.nextLine();
        String[] sInputArray = sInput.split("");
        String sCompVal = sInputArray[sInput.length() - 1];
        int iComp = Integer.parseInt(sCompVal);

        String sResult = "";
        for (hon h : hon.values()) {
            if (h.m_iHon == iComp) {
                sResult = "hon";
            }
        }

        if (!sResult.isEmpty()) {
            System.out.print(sResult);
            return;
        }

        if (3 == iComp) {
            sResult = "bon";
        } else {
            sResult = "pon";
        }

        System.out.print(sResult);

    }
} public class Main {

    private enum hon {
        HON_2(2),

        HON_4(4),

        HON_5(5),

        HON_7(7),

        HON_9(9);

        private int m_iHon;

        hon(int i) {
            m_iHon = i;
        }
    }

    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);

        String sInput = sc.nextLine();
        String[] sInputArray = sInput.split("");
        String sCompVal = sInputArray[sInput.length() - 1];
        int iComp = Integer.parseInt(sCompVal);

        String sResult = "";
        for (hon h : hon.values()) {
            if (h.m_iHon == iComp) {
                sResult = "hon";
            }
        }

        if (!sResult.isEmpty()) {
            System.out.print(sResult);
            return;
        }

        if (3 == iComp) {
            sResult = "bon";
        } else {
            sResult = "pon";
        }

        System.out.print(sResult);

    }
} Main
import java.util.Scanner;

public class Main {

    private enum hon {
        HON_2(2),

        HON_4(4),

        HON_5(5),

        HON_7(7),

        HON_9(9);

        private int m_iHon;

        hon(int i) {
            m_iHon = i;
        }
    }

    public static void main(String[] args) throws Exception {

        Scanner sc = new Scanner(System.in);

        String sInput = sc.nextLine();
        String[] sInputArray = sInput.split("");
        String sCompVal = sInputArray[sInput.length() - 1];
        int iComp = Integer.parseInt(sCompVal);

        String sResult = "";
        for (hon h : hon.values()) {
            if (h.m_iHon == iComp) {
                sResult = "hon";
            }
        }

        if (!sResult.isEmpty()) {
            System.out.print(sResult);
            return;
        }

        if (3 == iComp) {
            sResult = "bon";
        } else {
            sResult = "pon";
        }

        System.out.print(sResult);

    }
}
