import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
        String line = bufferedReader.readLine();
        String[] honList = new String[]{"2", "4", "5", "7", "9"};
        String[] ponList = new String[]{"0", "1", "6", "8"};
        String[] bonList = new String[]{"3"};
        for (String h : honList)
            if (line.endsWith(h)) {
                System.out.println("hon");
                return;
            }
        for (String p: ponList)
            if (line.endsWith(p)) {
                System.out.println("pon");
                return;
            }
        for (String b : bonList)
            if (line.endsWith(b)) {
                System.out.println("bon");
                return;
            }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
        String line = bufferedReader.readLine();
        String[] honList = new String[]{"2", "4", "5", "7", "9"};
        String[] ponList = new String[]{"0", "1", "6", "8"};
        String[] bonList = new String[]{"3"};
        for (String h : honList)
            if (line.endsWith(h)) {
                System.out.println("hon");
                return;
            }
        for (String p: ponList)
            if (line.endsWith(p)) {
                System.out.println("pon");
                return;
            }
        for (String b : bonList)
            if (line.endsWith(b)) {
                System.out.println("bon");
                return;
            }
    }
} Main public static void main(String[] args) throws Exception {
        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
        String line = bufferedReader.readLine();
        String[] honList = new String[]{"2", "4", "5", "7", "9"};
        String[] ponList = new String[]{"0", "1", "6", "8"};
        String[] bonList = new String[]{"3"};
        for (String h : honList)
            if (line.endsWith(h)) {
                System.out.println("hon");
                return;
            }
        for (String p: ponList)
            if (line.endsWith(p)) {
                System.out.println("pon");
                return;
            }
        for (String b : bonList)
            if (line.endsWith(b)) {
                System.out.println("bon");
                return;
            }
    } main {
        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
        String line = bufferedReader.readLine();
        String[] honList = new String[]{"2", "4", "5", "7", "9"};
        String[] ponList = new String[]{"0", "1", "6", "8"};
        String[] bonList = new String[]{"3"};
        for (String h : honList)
            if (line.endsWith(h)) {
                System.out.println("hon");
                return;
            }
        for (String p: ponList)
            if (line.endsWith(p)) {
                System.out.println("pon");
                return;
            }
        for (String b : bonList)
            if (line.endsWith(b)) {
                System.out.println("bon");
                return;
            }
    } BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in)); bufferedReader new BufferedReader(new InputStreamReader(System.in)) String line = bufferedReader.readLine(); line bufferedReader.readLine() bufferedReader.readLine bufferedReader String[] honList = new String[]{"2", "4", "5", "7", "9"}; honList new String[]{"2", "4", "5", "7", "9"} String[] ponList = new String[]{"0", "1", "6", "8"}; ponList new String[]{"0", "1", "6", "8"} String[] bonList = new String[]{"3"}; bonList new String[]{"3"} for (String h : honList)
            if (line.endsWith(h)) {
                System.out.println("hon");
                return;
            } String h honList if (line.endsWith(h)) {
                System.out.println("hon");
                return;
            } if (line.endsWith(h)) {
                System.out.println("hon");
                return;
            } line.endsWith(h) line.endsWith line h {
                System.out.println("hon");
                return;
            } System.out.println("hon") System.out.println System.out System System.out "hon" return; for (String p: ponList)
            if (line.endsWith(p)) {
                System.out.println("pon");
                return;
            } String p ponList if (line.endsWith(p)) {
                System.out.println("pon");
                return;
            } if (line.endsWith(p)) {
                System.out.println("pon");
                return;
            } line.endsWith(p) line.endsWith line p {
                System.out.println("pon");
                return;
            } System.out.println("pon") System.out.println System.out System System.out "pon" return; for (String b : bonList)
            if (line.endsWith(b)) {
                System.out.println("bon");
                return;
            } String b bonList if (line.endsWith(b)) {
                System.out.println("bon");
                return;
            } if (line.endsWith(b)) {
                System.out.println("bon");
                return;
            } line.endsWith(b) line.endsWith line b {
                System.out.println("bon");
                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 bufferedReader = new BufferedReader(new InputStreamReader(System.in));
        String line = bufferedReader.readLine();
        String[] honList = new String[]{"2", "4", "5", "7", "9"};
        String[] ponList = new String[]{"0", "1", "6", "8"};
        String[] bonList = new String[]{"3"};
        for (String h : honList)
            if (line.endsWith(h)) {
                System.out.println("hon");
                return;
            }
        for (String p: ponList)
            if (line.endsWith(p)) {
                System.out.println("pon");
                return;
            }
        for (String b : bonList)
            if (line.endsWith(b)) {
                System.out.println("bon");
                return;
            }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
        String line = bufferedReader.readLine();
        String[] honList = new String[]{"2", "4", "5", "7", "9"};
        String[] ponList = new String[]{"0", "1", "6", "8"};
        String[] bonList = new String[]{"3"};
        for (String h : honList)
            if (line.endsWith(h)) {
                System.out.println("hon");
                return;
            }
        for (String p: ponList)
            if (line.endsWith(p)) {
                System.out.println("pon");
                return;
            }
        for (String b : bonList)
            if (line.endsWith(b)) {
                System.out.println("bon");
                return;
            }
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
        String line = bufferedReader.readLine();
        String[] honList = new String[]{"2", "4", "5", "7", "9"};
        String[] ponList = new String[]{"0", "1", "6", "8"};
        String[] bonList = new String[]{"3"};
        for (String h : honList)
            if (line.endsWith(h)) {
                System.out.println("hon");
                return;
            }
        for (String p: ponList)
            if (line.endsWith(p)) {
                System.out.println("pon");
                return;
            }
        for (String b : bonList)
            if (line.endsWith(b)) {
                System.out.println("bon");
                return;
            }
    }
}
