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);

    }
}

/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz