import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author CompuWare
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ATherefore solver = new ATherefore();
        solver.solve(1, in, out);
        out.close();
    }

    static class ATherefore {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            long x = in.nextLong();
            if (x % 10 == 2 || x % 10 == 9 || x % 10 == 7 || x % 10 == 5 || x % 10 == 4) {
                out.print("hon");
            } else if (x % 10 == 3) {
                out.print("bon");
            } else {
                out.print("pon");
            }
        }

    }
}
 import java.io.OutputStream; OutputStream java.io import java.io.IOException; IOException java.io import java.io.InputStream; InputStream java.io import java.io.PrintWriter; PrintWriter java.io import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ATherefore solver = new ATherefore();
        solver.solve(1, in, out);
        out.close();
    }

    static class ATherefore {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            long x = in.nextLong();
            if (x % 10 == 2 || x % 10 == 9 || x % 10 == 7 || x % 10 == 5 || x % 10 == 4) {
                out.print("hon");
            } else if (x % 10 == 3) {
                out.print("bon");
            } else {
                out.print("pon");
            }
        }

    }
} Main public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ATherefore solver = new ATherefore();
        solver.solve(1, in, out);
        out.close();
    } main {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ATherefore solver = new ATherefore();
        solver.solve(1, in, out);
        out.close();
    } InputStream inputStream = System.in; inputStream System.in System System.in OutputStream outputStream = System.out; outputStream System.out System System.out Scanner in = new Scanner(inputStream); in new Scanner(inputStream) PrintWriter out = new PrintWriter(outputStream); out new PrintWriter(outputStream) ATherefore solver = new ATherefore(); solver new ATherefore() solver.solve(1, in, out) solver.solve solver 1 in out out.close() out.close out String[] args args static class ATherefore {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            long x = in.nextLong();
            if (x % 10 == 2 || x % 10 == 9 || x % 10 == 7 || x % 10 == 5 || x % 10 == 4) {
                out.print("hon");
            } else if (x % 10 == 3) {
                out.print("bon");
            } else {
                out.print("pon");
            }
        }

    } ATherefore public void solve(int testNumber, Scanner in, PrintWriter out) {
            long x = in.nextLong();
            if (x % 10 == 2 || x % 10 == 9 || x % 10 == 7 || x % 10 == 5 || x % 10 == 4) {
                out.print("hon");
            } else if (x % 10 == 3) {
                out.print("bon");
            } else {
                out.print("pon");
            }
        } solve {
            long x = in.nextLong();
            if (x % 10 == 2 || x % 10 == 9 || x % 10 == 7 || x % 10 == 5 || x % 10 == 4) {
                out.print("hon");
            } else if (x % 10 == 3) {
                out.print("bon");
            } else {
                out.print("pon");
            }
        } long x = in.nextLong(); x in.nextLong() in.nextLong in if (x % 10 == 2 || x % 10 == 9 || x % 10 == 7 || x % 10 == 5 || x % 10 == 4) {
                out.print("hon");
            } else if (x % 10 == 3) {
                out.print("bon");
            } else {
                out.print("pon");
            } x % 10 == 2 || x % 10 == 9 || x % 10 == 7 || x % 10 == 5 || x % 10 == 4 x % 10 == 5 x % 10 == 7 x % 10 == 2 || x % 10 == 9 || x % 10 == 7 || x % 10 == 5 || x % 10 == 4 x % 10 == 2 x % 10 x 10 2 x % 10 == 9 x % 10 x 10 9 x % 10 == 7 x % 10 x 10 7 x % 10 == 5 x % 10 x 10 5 x % 10 == 4 x % 10 x 10 4 {
                out.print("hon");
            } out.print("hon") out.print out "hon" if (x % 10 == 3) {
                out.print("bon");
            } else {
                out.print("pon");
            } x % 10 == 3 x % 10 x 10 3 {
                out.print("bon");
            } out.print("bon") out.print out "bon" {
                out.print("pon");
            } out.print("pon") out.print out "pon" int testNumber testNumber Scanner in in PrintWriter out out public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ATherefore solver = new ATherefore();
        solver.solve(1, in, out);
        out.close();
    }

    static class ATherefore {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            long x = in.nextLong();
            if (x % 10 == 2 || x % 10 == 9 || x % 10 == 7 || x % 10 == 5 || x % 10 == 4) {
                out.print("hon");
            } else if (x % 10 == 3) {
                out.print("bon");
            } else {
                out.print("pon");
            }
        }

    }
} public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ATherefore solver = new ATherefore();
        solver.solve(1, in, out);
        out.close();
    }

    static class ATherefore {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            long x = in.nextLong();
            if (x % 10 == 2 || x % 10 == 9 || x % 10 == 7 || x % 10 == 5 || x % 10 == 4) {
                out.print("hon");
            } else if (x % 10 == 3) {
                out.print("bon");
            } else {
                out.print("pon");
            }
        }

    }
} Main
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author CompuWare
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        ATherefore solver = new ATherefore();
        solver.solve(1, in, out);
        out.close();
    }

    static class ATherefore {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            long x = in.nextLong();
            if (x % 10 == 2 || x % 10 == 9 || x % 10 == 7 || x % 10 == 5 || x % 10 == 4) {
                out.print("hon");
            } else if (x % 10 == 3) {
                out.print("bon");
            } else {
                out.print("pon");
            }
        }

    }
}

