import java.util.*;

class Main {
    private static Scanner sc;

    public static void main(final String[] args) {
        sc = new Scanner(System.in);
        String N = sc.next(),ans;
        int comp;
        N = N.substring(N.length()-1);
        comp = Integer.valueOf(N);
        if(comp == 3){
            ans = "bon";
        }else if(comp <= 1 || comp == 6 || comp == 8){
            ans = "pon";
        }else{
            ans = "hon";
        }
        System.out.println(ans);
    }
}





 import java.util.*; util.* java class Main {
    private static Scanner sc;

    public static void main(final String[] args) {
        sc = new Scanner(System.in);
        String N = sc.next(),ans;
        int comp;
        N = N.substring(N.length()-1);
        comp = Integer.valueOf(N);
        if(comp == 3){
            ans = "bon";
        }else if(comp <= 1 || comp == 6 || comp == 8){
            ans = "pon";
        }else{
            ans = "hon";
        }
        System.out.println(ans);
    }
} Main private static Scanner sc; sc public static void main(final String[] args) {
        sc = new Scanner(System.in);
        String N = sc.next(),ans;
        int comp;
        N = N.substring(N.length()-1);
        comp = Integer.valueOf(N);
        if(comp == 3){
            ans = "bon";
        }else if(comp <= 1 || comp == 6 || comp == 8){
            ans = "pon";
        }else{
            ans = "hon";
        }
        System.out.println(ans);
    } main {
        sc = new Scanner(System.in);
        String N = sc.next(),ans;
        int comp;
        N = N.substring(N.length()-1);
        comp = Integer.valueOf(N);
        if(comp == 3){
            ans = "bon";
        }else if(comp <= 1 || comp == 6 || comp == 8){
            ans = "pon";
        }else{
            ans = "hon";
        }
        System.out.println(ans);
    } sc = new Scanner(System.in) sc new Scanner(System.in) String N = sc.next() N sc.next() sc.next sc ans; ans int comp; comp N = N.substring(N.length()-1) N N.substring(N.length()-1) N.substring N N.length()-1 N.length() N.length N 1 comp = Integer.valueOf(N) comp Integer.valueOf(N) Integer.valueOf Integer N if(comp == 3){
            ans = "bon";
        }else if(comp <= 1 || comp == 6 || comp == 8){
            ans = "pon";
        }else{
            ans = "hon";
        } comp == 3 comp 3 {
            ans = "bon";
        } ans = "bon" ans "bon" if(comp <= 1 || comp == 6 || comp == 8){
            ans = "pon";
        }else{
            ans = "hon";
        } comp <= 1 || comp == 6 || comp == 8 comp <= 1 || comp == 6 || comp == 8 comp <= 1 comp 1 comp == 6 comp 6 comp == 8 comp 8 {
            ans = "pon";
        } ans = "pon" ans "pon" {
            ans = "hon";
        } ans = "hon" ans "hon" System.out.println(ans) System.out.println System.out System System.out ans final String[] args args
import java.util.*;

class Main {
    private static Scanner sc;

    public static void main(final String[] args) {
        sc = new Scanner(System.in);
        String N = sc.next(),ans;
        int comp;
        N = N.substring(N.length()-1);
        comp = Integer.valueOf(N);
        if(comp == 3){
            ans = "bon";
        }else if(comp <= 1 || comp == 6 || comp == 8){
            ans = "pon";
        }else{
            ans = "hon";
        }
        System.out.println(ans);
    }
}






