import java.util.*;

public class Main {
    public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        
        int onesPlace = N % 10;

        Integer[] honList = {2, 4, 5, 7, 9};
        Integer[] ponList = {0, 1, 6, 8};
        Integer[] bonList = {3};
        
        if (Arrays.asList(honList).contains(onesPlace)){
            System.out.println("hon");
        } else if (Arrays.asList(ponList).contains(onesPlace)) {
            System.out.println("pon");
        } else if (Arrays.asList(bonList).contains(onesPlace)) {
            System.out.println("bon");
        } 
        
    }
} import java.util.*; util.* java public class Main {
    public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        
        int onesPlace = N % 10;

        Integer[] honList = {2, 4, 5, 7, 9};
        Integer[] ponList = {0, 1, 6, 8};
        Integer[] bonList = {3};
        
        if (Arrays.asList(honList).contains(onesPlace)){
            System.out.println("hon");
        } else if (Arrays.asList(ponList).contains(onesPlace)) {
            System.out.println("pon");
        } else if (Arrays.asList(bonList).contains(onesPlace)) {
            System.out.println("bon");
        } 
        
    }
} Main public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        
        int onesPlace = N % 10;

        Integer[] honList = {2, 4, 5, 7, 9};
        Integer[] ponList = {0, 1, 6, 8};
        Integer[] bonList = {3};
        
        if (Arrays.asList(honList).contains(onesPlace)){
            System.out.println("hon");
        } else if (Arrays.asList(ponList).contains(onesPlace)) {
            System.out.println("pon");
        } else if (Arrays.asList(bonList).contains(onesPlace)) {
            System.out.println("bon");
        } 
        
    } main {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        
        int onesPlace = N % 10;

        Integer[] honList = {2, 4, 5, 7, 9};
        Integer[] ponList = {0, 1, 6, 8};
        Integer[] bonList = {3};
        
        if (Arrays.asList(honList).contains(onesPlace)){
            System.out.println("hon");
        } else if (Arrays.asList(ponList).contains(onesPlace)) {
            System.out.println("pon");
        } else if (Arrays.asList(bonList).contains(onesPlace)) {
            System.out.println("bon");
        } 
        
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int onesPlace = N % 10; onesPlace N % 10 N 10 Integer[] honList = {2, 4, 5, 7, 9}; honList {2, 4, 5, 7, 9} 2 4 5 7 9 Integer[] ponList = {0, 1, 6, 8}; ponList {0, 1, 6, 8} 0 1 6 8 Integer[] bonList = {3}; bonList {3} 3 if (Arrays.asList(honList).contains(onesPlace)){
            System.out.println("hon");
        } else if (Arrays.asList(ponList).contains(onesPlace)) {
            System.out.println("pon");
        } else if (Arrays.asList(bonList).contains(onesPlace)) {
            System.out.println("bon");
        } Arrays.asList(honList).contains(onesPlace) Arrays.asList(honList).contains Arrays.asList(honList) Arrays.asList Arrays honList onesPlace {
            System.out.println("hon");
        } System.out.println("hon") System.out.println System.out System System.out "hon" if (Arrays.asList(ponList).contains(onesPlace)) {
            System.out.println("pon");
        } else if (Arrays.asList(bonList).contains(onesPlace)) {
            System.out.println("bon");
        } Arrays.asList(ponList).contains(onesPlace) Arrays.asList(ponList).contains Arrays.asList(ponList) Arrays.asList Arrays ponList onesPlace {
            System.out.println("pon");
        } System.out.println("pon") System.out.println System.out System System.out "pon" if (Arrays.asList(bonList).contains(onesPlace)) {
            System.out.println("bon");
        } Arrays.asList(bonList).contains(onesPlace) Arrays.asList(bonList).contains Arrays.asList(bonList) Arrays.asList Arrays bonList onesPlace {
            System.out.println("bon");
        } System.out.println("bon") System.out.println System.out System System.out "bon" String[] args args public class Main {
    public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        
        int onesPlace = N % 10;

        Integer[] honList = {2, 4, 5, 7, 9};
        Integer[] ponList = {0, 1, 6, 8};
        Integer[] bonList = {3};
        
        if (Arrays.asList(honList).contains(onesPlace)){
            System.out.println("hon");
        } else if (Arrays.asList(ponList).contains(onesPlace)) {
            System.out.println("pon");
        } else if (Arrays.asList(bonList).contains(onesPlace)) {
            System.out.println("bon");
        } 
        
    }
} public class Main {
    public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        
        int onesPlace = N % 10;

        Integer[] honList = {2, 4, 5, 7, 9};
        Integer[] ponList = {0, 1, 6, 8};
        Integer[] bonList = {3};
        
        if (Arrays.asList(honList).contains(onesPlace)){
            System.out.println("hon");
        } else if (Arrays.asList(ponList).contains(onesPlace)) {
            System.out.println("pon");
        } else if (Arrays.asList(bonList).contains(onesPlace)) {
            System.out.println("bon");
        } 
        
    }
} Main
import java.util.*;

public class Main {
    public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        
        int onesPlace = N % 10;

        Integer[] honList = {2, 4, 5, 7, 9};
        Integer[] ponList = {0, 1, 6, 8};
        Integer[] bonList = {3};
        
        if (Arrays.asList(honList).contains(onesPlace)){
            System.out.println("hon");
        } else if (Arrays.asList(ponList).contains(onesPlace)) {
            System.out.println("pon");
        } else if (Arrays.asList(bonList).contains(onesPlace)) {
            System.out.println("bon");
        } 
        
    }
}