import java.io.*;
import java.util.*;

public class Main {
    public static void main (String[] args) throws Exception {
        BufferedReader reader =
            new BufferedReader (new InputStreamReader (System.in));
        String[] arr = reader.readLine().split (" ");
        int N;
        N = Integer.parseInt (arr[0]);
        Integer[] arrHon = {2, 4, 5, 7, 9};
        Integer[] arrPon = {0, 1, 6, 8};
        if (Arrays.asList (arrHon).contains (N % 10)) {
            System.out.println ("hon");
            return;
        }
        if (Arrays.asList (arrPon).contains (N % 10)) {
            System.out.println ("pon");
            return;
        }
        System.out.println ("bon");
        return;
    }
} import java.io.*; io.* java import java.util.*; util.* java public class Main {
    public static void main (String[] args) throws Exception {
        BufferedReader reader =
            new BufferedReader (new InputStreamReader (System.in));
        String[] arr = reader.readLine().split (" ");
        int N;
        N = Integer.parseInt (arr[0]);
        Integer[] arrHon = {2, 4, 5, 7, 9};
        Integer[] arrPon = {0, 1, 6, 8};
        if (Arrays.asList (arrHon).contains (N % 10)) {
            System.out.println ("hon");
            return;
        }
        if (Arrays.asList (arrPon).contains (N % 10)) {
            System.out.println ("pon");
            return;
        }
        System.out.println ("bon");
        return;
    }
} Main public static void main (String[] args) throws Exception {
        BufferedReader reader =
            new BufferedReader (new InputStreamReader (System.in));
        String[] arr = reader.readLine().split (" ");
        int N;
        N = Integer.parseInt (arr[0]);
        Integer[] arrHon = {2, 4, 5, 7, 9};
        Integer[] arrPon = {0, 1, 6, 8};
        if (Arrays.asList (arrHon).contains (N % 10)) {
            System.out.println ("hon");
            return;
        }
        if (Arrays.asList (arrPon).contains (N % 10)) {
            System.out.println ("pon");
            return;
        }
        System.out.println ("bon");
        return;
    } main {
        BufferedReader reader =
            new BufferedReader (new InputStreamReader (System.in));
        String[] arr = reader.readLine().split (" ");
        int N;
        N = Integer.parseInt (arr[0]);
        Integer[] arrHon = {2, 4, 5, 7, 9};
        Integer[] arrPon = {0, 1, 6, 8};
        if (Arrays.asList (arrHon).contains (N % 10)) {
            System.out.println ("hon");
            return;
        }
        if (Arrays.asList (arrPon).contains (N % 10)) {
            System.out.println ("pon");
            return;
        }
        System.out.println ("bon");
        return;
    } BufferedReader reader =
            new BufferedReader (new InputStreamReader (System.in)); reader new BufferedReader (new InputStreamReader (System.in)) String[] arr = reader.readLine().split (" "); arr reader.readLine().split (" ") reader.readLine().split reader.readLine() reader.readLine reader " " int N; N N = Integer.parseInt (arr[0]) N Integer.parseInt (arr[0]) Integer.parseInt Integer arr[0] arr 0 Integer[] arrHon = {2, 4, 5, 7, 9}; arrHon {2, 4, 5, 7, 9} 2 4 5 7 9 Integer[] arrPon = {0, 1, 6, 8}; arrPon {0, 1, 6, 8} 0 1 6 8 if (Arrays.asList (arrHon).contains (N % 10)) {
            System.out.println ("hon");
            return;
        } Arrays.asList (arrHon).contains (N % 10) Arrays.asList (arrHon).contains Arrays.asList (arrHon) Arrays.asList Arrays arrHon N % 10 N 10 {
            System.out.println ("hon");
            return;
        } System.out.println ("hon") System.out.println System.out System System.out "hon" return; if (Arrays.asList (arrPon).contains (N % 10)) {
            System.out.println ("pon");
            return;
        } Arrays.asList (arrPon).contains (N % 10) Arrays.asList (arrPon).contains Arrays.asList (arrPon) Arrays.asList Arrays arrPon N % 10 N 10 {
            System.out.println ("pon");
            return;
        } System.out.println ("pon") System.out.println System.out System System.out "pon" return; System.out.println ("bon") System.out.println System.out System System.out "bon" return; String[] args args public class Main {
    public static void main (String[] args) throws Exception {
        BufferedReader reader =
            new BufferedReader (new InputStreamReader (System.in));
        String[] arr = reader.readLine().split (" ");
        int N;
        N = Integer.parseInt (arr[0]);
        Integer[] arrHon = {2, 4, 5, 7, 9};
        Integer[] arrPon = {0, 1, 6, 8};
        if (Arrays.asList (arrHon).contains (N % 10)) {
            System.out.println ("hon");
            return;
        }
        if (Arrays.asList (arrPon).contains (N % 10)) {
            System.out.println ("pon");
            return;
        }
        System.out.println ("bon");
        return;
    }
} public class Main {
    public static void main (String[] args) throws Exception {
        BufferedReader reader =
            new BufferedReader (new InputStreamReader (System.in));
        String[] arr = reader.readLine().split (" ");
        int N;
        N = Integer.parseInt (arr[0]);
        Integer[] arrHon = {2, 4, 5, 7, 9};
        Integer[] arrPon = {0, 1, 6, 8};
        if (Arrays.asList (arrHon).contains (N % 10)) {
            System.out.println ("hon");
            return;
        }
        if (Arrays.asList (arrPon).contains (N % 10)) {
            System.out.println ("pon");
            return;
        }
        System.out.println ("bon");
        return;
    }
} Main
import java.io.*;
import java.util.*;

public class Main {
    public static void main (String[] args) throws Exception {
        BufferedReader reader =
            new BufferedReader (new InputStreamReader (System.in));
        String[] arr = reader.readLine().split (" ");
        int N;
        N = Integer.parseInt (arr[0]);
        Integer[] arrHon = {2, 4, 5, 7, 9};
        Integer[] arrPon = {0, 1, 6, 8};
        if (Arrays.asList (arrHon).contains (N % 10)) {
            System.out.println ("hon");
            return;
        }
        if (Arrays.asList (arrPon).contains (N % 10)) {
            System.out.println ("pon");
            return;
        }
        System.out.println ("bon");
        return;
    }
}
