
import java.util.*;

public class Main {
    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        final String n = sc.next();
        sc.close();
        String result = "hon";
        int tmp = Integer.parseInt(n.split("")[n.length() - 1]);
        if (tmp == 3) {
            result = "bon";
        } else if (tmp == 0 || tmp == 1 || tmp == 6 || tmp == 8) {
            result = "pon";
        }

        System.out.println(result);
    }
} import java.util.*; util.* java public class Main {
    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        final String n = sc.next();
        sc.close();
        String result = "hon";
        int tmp = Integer.parseInt(n.split("")[n.length() - 1]);
        if (tmp == 3) {
            result = "bon";
        } else if (tmp == 0 || tmp == 1 || tmp == 6 || tmp == 8) {
            result = "pon";
        }

        System.out.println(result);
    }
} Main public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        final String n = sc.next();
        sc.close();
        String result = "hon";
        int tmp = Integer.parseInt(n.split("")[n.length() - 1]);
        if (tmp == 3) {
            result = "bon";
        } else if (tmp == 0 || tmp == 1 || tmp == 6 || tmp == 8) {
            result = "pon";
        }

        System.out.println(result);
    } main {
        final Scanner sc = new Scanner(System.in);
        final String n = sc.next();
        sc.close();
        String result = "hon";
        int tmp = Integer.parseInt(n.split("")[n.length() - 1]);
        if (tmp == 3) {
            result = "bon";
        } else if (tmp == 0 || tmp == 1 || tmp == 6 || tmp == 8) {
            result = "pon";
        }

        System.out.println(result);
    } final Scanner sc = new Scanner(System.in); sc new Scanner(System.in) final String n = sc.next(); n sc.next() sc.next sc sc.close() sc.close sc String result = "hon"; result "hon" int tmp = Integer.parseInt(n.split("")[n.length() - 1]); tmp Integer.parseInt(n.split("")[n.length() - 1]) Integer.parseInt Integer n.split("")[n.length() - 1] n.split("") n.split n "" n.length() - 1 n.length() n.length n 1 if (tmp == 3) {
            result = "bon";
        } else if (tmp == 0 || tmp == 1 || tmp == 6 || tmp == 8) {
            result = "pon";
        } tmp == 3 tmp 3 {
            result = "bon";
        } result = "bon" result "bon" if (tmp == 0 || tmp == 1 || tmp == 6 || tmp == 8) {
            result = "pon";
        } tmp == 0 || tmp == 1 || tmp == 6 || tmp == 8 tmp == 6 tmp == 0 || tmp == 1 || tmp == 6 || tmp == 8 tmp == 0 tmp 0 tmp == 1 tmp 1 tmp == 6 tmp 6 tmp == 8 tmp 8 {
            result = "pon";
        } result = "pon" result "pon" System.out.println(result) System.out.println System.out System System.out result final String[] args args public class Main {
    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        final String n = sc.next();
        sc.close();
        String result = "hon";
        int tmp = Integer.parseInt(n.split("")[n.length() - 1]);
        if (tmp == 3) {
            result = "bon";
        } else if (tmp == 0 || tmp == 1 || tmp == 6 || tmp == 8) {
            result = "pon";
        }

        System.out.println(result);
    }
} public class Main {
    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        final String n = sc.next();
        sc.close();
        String result = "hon";
        int tmp = Integer.parseInt(n.split("")[n.length() - 1]);
        if (tmp == 3) {
            result = "bon";
        } else if (tmp == 0 || tmp == 1 || tmp == 6 || tmp == 8) {
            result = "pon";
        }

        System.out.println(result);
    }
} Main

import java.util.*;

public class Main {
    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        final String n = sc.next();
        sc.close();
        String result = "hon";
        int tmp = Integer.parseInt(n.split("")[n.length() - 1]);
        if (tmp == 3) {
            result = "bon";
        } else if (tmp == 0 || tmp == 1 || tmp == 6 || tmp == 8) {
            result = "pon";
        }

        System.out.println(result);
    }
}