import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        final Integer[] HonPT = new Integer[] {2, 4, 5, 7, 9};
        final Integer[] PonPT = new Integer[] {0, 1, 6, 8};
        Scanner scan = new Scanner(System.in);
        char[] n = scan.nextLine().toCharArray();
        Integer num = Integer.parseInt(String.valueOf(n[n.length - 1]));
        //System.out.println(num);
        
        if (Arrays.asList(HonPT).contains(num)) {
            System.out.println("hon");
        } else if (Arrays.asList(PonPT).contains(num)) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        }

        scan.close();
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        final Integer[] HonPT = new Integer[] {2, 4, 5, 7, 9};
        final Integer[] PonPT = new Integer[] {0, 1, 6, 8};
        Scanner scan = new Scanner(System.in);
        char[] n = scan.nextLine().toCharArray();
        Integer num = Integer.parseInt(String.valueOf(n[n.length - 1]));
        //System.out.println(num);
        
        if (Arrays.asList(HonPT).contains(num)) {
            System.out.println("hon");
        } else if (Arrays.asList(PonPT).contains(num)) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        }

        scan.close();
    }
} Main public static void main(String[] args) throws Exception {
        final Integer[] HonPT = new Integer[] {2, 4, 5, 7, 9};
        final Integer[] PonPT = new Integer[] {0, 1, 6, 8};
        Scanner scan = new Scanner(System.in);
        char[] n = scan.nextLine().toCharArray();
        Integer num = Integer.parseInt(String.valueOf(n[n.length - 1]));
        //System.out.println(num);
        
        if (Arrays.asList(HonPT).contains(num)) {
            System.out.println("hon");
        } else if (Arrays.asList(PonPT).contains(num)) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        }

        scan.close();
    } main {
        final Integer[] HonPT = new Integer[] {2, 4, 5, 7, 9};
        final Integer[] PonPT = new Integer[] {0, 1, 6, 8};
        Scanner scan = new Scanner(System.in);
        char[] n = scan.nextLine().toCharArray();
        Integer num = Integer.parseInt(String.valueOf(n[n.length - 1]));
        //System.out.println(num);
        
        if (Arrays.asList(HonPT).contains(num)) {
            System.out.println("hon");
        } else if (Arrays.asList(PonPT).contains(num)) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        }

        scan.close();
    } final Integer[] HonPT = new Integer[] {2, 4, 5, 7, 9}; HonPT new Integer[] {2, 4, 5, 7, 9} final Integer[] PonPT = new Integer[] {0, 1, 6, 8}; PonPT new Integer[] {0, 1, 6, 8} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) char[] n = scan.nextLine().toCharArray(); n scan.nextLine().toCharArray() scan.nextLine().toCharArray scan.nextLine() scan.nextLine scan Integer num = Integer.parseInt(String.valueOf(n[n.length - 1])); num Integer.parseInt(String.valueOf(n[n.length - 1])) Integer.parseInt Integer String.valueOf(n[n.length - 1]) String.valueOf String n[n.length - 1] n n.length - 1 n.length n n.length 1 if (Arrays.asList(HonPT).contains(num)) {
            System.out.println("hon");
        } else if (Arrays.asList(PonPT).contains(num)) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        } Arrays.asList(HonPT).contains(num) Arrays.asList(HonPT).contains Arrays.asList(HonPT) Arrays.asList Arrays HonPT num {
            System.out.println("hon");
        } System.out.println("hon") System.out.println System.out System System.out "hon" if (Arrays.asList(PonPT).contains(num)) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        } Arrays.asList(PonPT).contains(num) Arrays.asList(PonPT).contains Arrays.asList(PonPT) Arrays.asList Arrays PonPT num {
            System.out.println("pon");
        } System.out.println("pon") System.out.println System.out System System.out "pon" {
            System.out.println("bon");
        } System.out.println("bon") System.out.println System.out System System.out "bon" scan.close() scan.close scan String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        final Integer[] HonPT = new Integer[] {2, 4, 5, 7, 9};
        final Integer[] PonPT = new Integer[] {0, 1, 6, 8};
        Scanner scan = new Scanner(System.in);
        char[] n = scan.nextLine().toCharArray();
        Integer num = Integer.parseInt(String.valueOf(n[n.length - 1]));
        //System.out.println(num);
        
        if (Arrays.asList(HonPT).contains(num)) {
            System.out.println("hon");
        } else if (Arrays.asList(PonPT).contains(num)) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        }

        scan.close();
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        final Integer[] HonPT = new Integer[] {2, 4, 5, 7, 9};
        final Integer[] PonPT = new Integer[] {0, 1, 6, 8};
        Scanner scan = new Scanner(System.in);
        char[] n = scan.nextLine().toCharArray();
        Integer num = Integer.parseInt(String.valueOf(n[n.length - 1]));
        //System.out.println(num);
        
        if (Arrays.asList(HonPT).contains(num)) {
            System.out.println("hon");
        } else if (Arrays.asList(PonPT).contains(num)) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        }

        scan.close();
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        final Integer[] HonPT = new Integer[] {2, 4, 5, 7, 9};
        final Integer[] PonPT = new Integer[] {0, 1, 6, 8};
        Scanner scan = new Scanner(System.in);
        char[] n = scan.nextLine().toCharArray();
        Integer num = Integer.parseInt(String.valueOf(n[n.length - 1]));
        //System.out.println(num);
        
        if (Arrays.asList(HonPT).contains(num)) {
            System.out.println("hon");
        } else if (Arrays.asList(PonPT).contains(num)) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        }

        scan.close();
    }
}
