import java.util.Scanner;

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

        int nn = n % 10;

        if(nn == 2 || nn == 4 || nn == 5 || nn == 7 || nn == 9) {
            System.out.println("hon");
        } else if(nn == 0 || nn == 1 || nn == 6 || nn == 8) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        sc.close();

        int nn = n % 10;

        if(nn == 2 || nn == 4 || nn == 5 || nn == 7 || nn == 9) {
            System.out.println("hon");
        } else if(nn == 0 || nn == 1 || nn == 6 || nn == 8) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        sc.close();

        int nn = n % 10;

        if(nn == 2 || nn == 4 || nn == 5 || nn == 7 || nn == 9) {
            System.out.println("hon");
        } else if(nn == 0 || nn == 1 || nn == 6 || nn == 8) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        sc.close();

        int nn = n % 10;

        if(nn == 2 || nn == 4 || nn == 5 || nn == 7 || nn == 9) {
            System.out.println("hon");
        } else if(nn == 0 || nn == 1 || nn == 6 || nn == 8) {
            System.out.println("pon");
        } else {
            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 sc.close() sc.close sc int nn = n % 10; nn n % 10 n 10 if(nn == 2 || nn == 4 || nn == 5 || nn == 7 || nn == 9) {
            System.out.println("hon");
        } else if(nn == 0 || nn == 1 || nn == 6 || nn == 8) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        } nn == 2 || nn == 4 || nn == 5 || nn == 7 || nn == 9 nn == 7 nn == 5 nn == 2 || nn == 4 || nn == 5 || nn == 7 || nn == 9 nn == 2 nn 2 nn == 4 nn 4 nn == 5 nn 5 nn == 7 nn 7 nn == 9 nn 9 {
            System.out.println("hon");
        } System.out.println("hon") System.out.println System.out System System.out "hon" if(nn == 0 || nn == 1 || nn == 6 || nn == 8) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        } nn == 0 || nn == 1 || nn == 6 || nn == 8 nn == 6 nn == 0 || nn == 1 || nn == 6 || nn == 8 nn == 0 nn 0 nn == 1 nn 1 nn == 6 nn 6 nn == 8 nn 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" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        sc.close();

        int nn = n % 10;

        if(nn == 2 || nn == 4 || nn == 5 || nn == 7 || nn == 9) {
            System.out.println("hon");
        } else if(nn == 0 || nn == 1 || nn == 6 || nn == 8) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        sc.close();

        int nn = n % 10;

        if(nn == 2 || nn == 4 || nn == 5 || nn == 7 || nn == 9) {
            System.out.println("hon");
        } else if(nn == 0 || nn == 1 || nn == 6 || nn == 8) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        }
    }
} Main
import java.util.Scanner;

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

        int nn = n % 10;

        if(nn == 2 || nn == 4 || nn == 5 || nn == 7 || nn == 9) {
            System.out.println("hon");
        } else if(nn == 0 || nn == 1 || nn == 6 || nn == 8) {
            System.out.println("pon");
        } else {
            System.out.println("bon");
        }
    }
}
