import java.util.*;

class Main {
    public static void main(String args[]) {
        Scanner inp = new Scanner(System.in);
        do_(inp);
        inp.close();
    }
    public static void do_(Scanner inp) {
        char ss[] = inp.next().toCharArray();
        char s = ss[ss.length - 1];
        if (s == '2' || s == '4' || s == '5' || s == '7' || s == '9') {
            System.out.println("hon");
        }
        else if (s == '0' || s == '1' || s == '6' || s == '8') {
            System.out.println("pon");
        }
        else {
            System.out.println("bon");
        }
    }
} import java.util.*; util.* java class Main {
    public static void main(String args[]) {
        Scanner inp = new Scanner(System.in);
        do_(inp);
        inp.close();
    }
    public static void do_(Scanner inp) {
        char ss[] = inp.next().toCharArray();
        char s = ss[ss.length - 1];
        if (s == '2' || s == '4' || s == '5' || s == '7' || s == '9') {
            System.out.println("hon");
        }
        else if (s == '0' || s == '1' || s == '6' || s == '8') {
            System.out.println("pon");
        }
        else {
            System.out.println("bon");
        }
    }
} Main public static void main(String args[]) {
        Scanner inp = new Scanner(System.in);
        do_(inp);
        inp.close();
    } main {
        Scanner inp = new Scanner(System.in);
        do_(inp);
        inp.close();
    } Scanner inp = new Scanner(System.in); inp new Scanner(System.in) do_(inp) do_ inp inp.close() inp.close inp String args[] args public static void do_(Scanner inp) {
        char ss[] = inp.next().toCharArray();
        char s = ss[ss.length - 1];
        if (s == '2' || s == '4' || s == '5' || s == '7' || s == '9') {
            System.out.println("hon");
        }
        else if (s == '0' || s == '1' || s == '6' || s == '8') {
            System.out.println("pon");
        }
        else {
            System.out.println("bon");
        }
    } do_ {
        char ss[] = inp.next().toCharArray();
        char s = ss[ss.length - 1];
        if (s == '2' || s == '4' || s == '5' || s == '7' || s == '9') {
            System.out.println("hon");
        }
        else if (s == '0' || s == '1' || s == '6' || s == '8') {
            System.out.println("pon");
        }
        else {
            System.out.println("bon");
        }
    } char ss[] = inp.next().toCharArray(); ss inp.next().toCharArray() inp.next().toCharArray inp.next() inp.next inp char s = ss[ss.length - 1]; s ss[ss.length - 1] ss ss.length - 1 ss.length ss ss.length 1 if (s == '2' || s == '4' || s == '5' || s == '7' || s == '9') {
            System.out.println("hon");
        }
        else if (s == '0' || s == '1' || s == '6' || s == '8') {
            System.out.println("pon");
        }
        else {
            System.out.println("bon");
        } s == '2' || s == '4' || s == '5' || s == '7' || s == '9' s == '7' s == '5' s == '2' || s == '4' || s == '5' || s == '7' || s == '9' s == '2' s '2' s == '4' s '4' s == '5' s '5' s == '7' s '7' s == '9' s '9' {
            System.out.println("hon");
        } System.out.println("hon") System.out.println System.out System System.out "hon" if (s == '0' || s == '1' || s == '6' || s == '8') {
            System.out.println("pon");
        }
        else {
            System.out.println("bon");
        } s == '0' || s == '1' || s == '6' || s == '8' s == '6' s == '0' || s == '1' || s == '6' || s == '8' s == '0' s '0' s == '1' s '1' s == '6' s '6' s == '8' s '8' {
            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" Scanner inp inp
import java.util.*;

class Main {
    public static void main(String args[]) {
        Scanner inp = new Scanner(System.in);
        do_(inp);
        inp.close();
    }
    public static void do_(Scanner inp) {
        char ss[] = inp.next().toCharArray();
        char s = ss[ss.length - 1];
        if (s == '2' || s == '4' || s == '5' || s == '7' || s == '9') {
            System.out.println("hon");
        }
        else if (s == '0' || s == '1' || s == '6' || s == '8') {
            System.out.println("pon");
        }
        else {
            System.out.println("bon");
        }
    }
}
