import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] list = new int[String.valueOf( N ).length()]; 
        for (int i= 0;i < String.valueOf( N ).length();i++) {
            list[i] = N % 10;
            N /= 10;
        }
        int a = list[0];
        String b = null;
        if (a == 2 || a == 4 || a == 5 || a == 7 || a == 9) {
            b = "hon";
        } else if (a == 0 || a == 1 || a == 6 || a == 8){
            b = "pon";
        } else {
            b = "bon";
        }
        System.out.println(b);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] list = new int[String.valueOf( N ).length()]; 
        for (int i= 0;i < String.valueOf( N ).length();i++) {
            list[i] = N % 10;
            N /= 10;
        }
        int a = list[0];
        String b = null;
        if (a == 2 || a == 4 || a == 5 || a == 7 || a == 9) {
            b = "hon";
        } else if (a == 0 || a == 1 || a == 6 || a == 8){
            b = "pon";
        } else {
            b = "bon";
        }
        System.out.println(b);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] list = new int[String.valueOf( N ).length()]; 
        for (int i= 0;i < String.valueOf( N ).length();i++) {
            list[i] = N % 10;
            N /= 10;
        }
        int a = list[0];
        String b = null;
        if (a == 2 || a == 4 || a == 5 || a == 7 || a == 9) {
            b = "hon";
        } else if (a == 0 || a == 1 || a == 6 || a == 8){
            b = "pon";
        } else {
            b = "bon";
        }
        System.out.println(b);
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] list = new int[String.valueOf( N ).length()]; 
        for (int i= 0;i < String.valueOf( N ).length();i++) {
            list[i] = N % 10;
            N /= 10;
        }
        int a = list[0];
        String b = null;
        if (a == 2 || a == 4 || a == 5 || a == 7 || a == 9) {
            b = "hon";
        } else if (a == 0 || a == 1 || a == 6 || a == 8){
            b = "pon";
        } else {
            b = "bon";
        }
        System.out.println(b);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] list = new int[String.valueOf( N ).length()]; list new int[String.valueOf( N ).length()] String.valueOf( N ).length() String.valueOf( N ).length String.valueOf( N ) String.valueOf String N for (int i= 0;i < String.valueOf( N ).length();i++) {
            list[i] = N % 10;
            N /= 10;
        } int i= 0; int i= 0; i 0 i < String.valueOf( N ).length() i String.valueOf( N ).length() String.valueOf( N ).length String.valueOf( N ) String.valueOf String N i++ i++ i {
            list[i] = N % 10;
            N /= 10;
        } {
            list[i] = N % 10;
            N /= 10;
        } list[i] = N % 10 list[i] list i N % 10 N 10 N /= 10 N 10 int a = list[0]; a list[0] list 0 String b = null; b null if (a == 2 || a == 4 || a == 5 || a == 7 || a == 9) {
            b = "hon";
        } else if (a == 0 || a == 1 || a == 6 || a == 8){
            b = "pon";
        } else {
            b = "bon";
        } a == 2 || a == 4 || a == 5 || a == 7 || a == 9 a == 7 a == 5 a == 2 || a == 4 || a == 5 || a == 7 || a == 9 a == 2 a 2 a == 4 a 4 a == 5 a 5 a == 7 a 7 a == 9 a 9 {
            b = "hon";
        } b = "hon" b "hon" if (a == 0 || a == 1 || a == 6 || a == 8){
            b = "pon";
        } else {
            b = "bon";
        } a == 0 || a == 1 || a == 6 || a == 8 a == 6 a == 0 || a == 1 || a == 6 || a == 8 a == 0 a 0 a == 1 a 1 a == 6 a 6 a == 8 a 8 {
            b = "pon";
        } b = "pon" b "pon" {
            b = "bon";
        } b = "bon" b "bon" System.out.println(b) System.out.println System.out System System.out b String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] list = new int[String.valueOf( N ).length()]; 
        for (int i= 0;i < String.valueOf( N ).length();i++) {
            list[i] = N % 10;
            N /= 10;
        }
        int a = list[0];
        String b = null;
        if (a == 2 || a == 4 || a == 5 || a == 7 || a == 9) {
            b = "hon";
        } else if (a == 0 || a == 1 || a == 6 || a == 8){
            b = "pon";
        } else {
            b = "bon";
        }
        System.out.println(b);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] list = new int[String.valueOf( N ).length()]; 
        for (int i= 0;i < String.valueOf( N ).length();i++) {
            list[i] = N % 10;
            N /= 10;
        }
        int a = list[0];
        String b = null;
        if (a == 2 || a == 4 || a == 5 || a == 7 || a == 9) {
            b = "hon";
        } else if (a == 0 || a == 1 || a == 6 || a == 8){
            b = "pon";
        } else {
            b = "bon";
        }
        System.out.println(b);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int[] list = new int[String.valueOf( N ).length()]; 
        for (int i= 0;i < String.valueOf( N ).length();i++) {
            list[i] = N % 10;
            N /= 10;
        }
        int a = list[0];
        String b = null;
        if (a == 2 || a == 4 || a == 5 || a == 7 || a == 9) {
            b = "hon";
        } else if (a == 0 || a == 1 || a == 6 || a == 8){
            b = "pon";
        } else {
            b = "bon";
        }
        System.out.println(b);
    }
}