import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        try (Scanner s = new Scanner(System.in)) {
            String n = s.next();
            System.out.println(unit(n));
        }
    }
    private static String unit(String n) {
        switch (n.charAt(n.length() - 1)) {
            case '3':
                return "bon";
            case '0':
            case '1':
            case '6':
            case '8':
                return "pon";
            default:
                return "hon";
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        try (Scanner s = new Scanner(System.in)) {
            String n = s.next();
            System.out.println(unit(n));
        }
    }
    private static String unit(String n) {
        switch (n.charAt(n.length() - 1)) {
            case '3':
                return "bon";
            case '0':
            case '1':
            case '6':
            case '8':
                return "pon";
            default:
                return "hon";
        }
    }
} Main public static void main(String[] args) throws Exception {
        try (Scanner s = new Scanner(System.in)) {
            String n = s.next();
            System.out.println(unit(n));
        }
    } main {
        try (Scanner s = new Scanner(System.in)) {
            String n = s.next();
            System.out.println(unit(n));
        }
    } try (Scanner s = new Scanner(System.in)) {
            String n = s.next();
            System.out.println(unit(n));
        } {
            String n = s.next();
            System.out.println(unit(n));
        } Scanner s = new Scanner(System.in) Scanner s = new Scanner(System.in) new Scanner(System.in) String n = s.next(); n s.next() s.next s System.out.println(unit(n)) System.out.println System.out System System.out unit(n) unit n String[] args args private static String unit(String n) {
        switch (n.charAt(n.length() - 1)) {
            case '3':
                return "bon";
            case '0':
            case '1':
            case '6':
            case '8':
                return "pon";
            default:
                return "hon";
        }
    } unit {
        switch (n.charAt(n.length() - 1)) {
            case '3':
                return "bon";
            case '0':
            case '1':
            case '6':
            case '8':
                return "pon";
            default:
                return "hon";
        }
    } switch (n.charAt(n.length() - 1)) {
            case '3':
                return "bon";
            case '0':
            case '1':
            case '6':
            case '8':
                return "pon";
            default:
                return "hon";
        } n.charAt(n.length() - 1) n.charAt n n.length() - 1 n.length() n.length n 1 case '3': '3' case '3': return "bon"; "bon" case '0': '0' case '0': case '1': '1' case '1': case '6': '6' case '6': case '8': '8' case '8': return "pon"; "pon" default: default: return "hon"; "hon" String n n public class Main {
    public static void main(String[] args) throws Exception {
        try (Scanner s = new Scanner(System.in)) {
            String n = s.next();
            System.out.println(unit(n));
        }
    }
    private static String unit(String n) {
        switch (n.charAt(n.length() - 1)) {
            case '3':
                return "bon";
            case '0':
            case '1':
            case '6':
            case '8':
                return "pon";
            default:
                return "hon";
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        try (Scanner s = new Scanner(System.in)) {
            String n = s.next();
            System.out.println(unit(n));
        }
    }
    private static String unit(String n) {
        switch (n.charAt(n.length() - 1)) {
            case '3':
                return "bon";
            case '0':
            case '1':
            case '6':
            case '8':
                return "pon";
            default:
                return "hon";
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        try (Scanner s = new Scanner(System.in)) {
            String n = s.next();
            System.out.println(unit(n));
        }
    }
    private static String unit(String n) {
        switch (n.charAt(n.length() - 1)) {
            case '3':
                return "bon";
            case '0':
            case '1':
            case '6':
            case '8':
                return "pon";
            default:
                return "hon";
        }
    }
}