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 Mehvix
 */
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 fin, PrintWriter fout) {
            int ones = fin.nextInt() % 10;
            if (ones == 3) fout.println("bon");
            else if (ones == 0 || ones == 1 || ones == 6 || ones == 8) fout.println("pon");
            else fout.println("hon");
        }

    }
}
 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 fin, PrintWriter fout) {
            int ones = fin.nextInt() % 10;
            if (ones == 3) fout.println("bon");
            else if (ones == 0 || ones == 1 || ones == 6 || ones == 8) fout.println("pon");
            else fout.println("hon");
        }

    }
} 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 fin, PrintWriter fout) {
            int ones = fin.nextInt() % 10;
            if (ones == 3) fout.println("bon");
            else if (ones == 0 || ones == 1 || ones == 6 || ones == 8) fout.println("pon");
            else fout.println("hon");
        }

    } ATherefore public void solve(int testNumber, Scanner fin, PrintWriter fout) {
            int ones = fin.nextInt() % 10;
            if (ones == 3) fout.println("bon");
            else if (ones == 0 || ones == 1 || ones == 6 || ones == 8) fout.println("pon");
            else fout.println("hon");
        } solve {
            int ones = fin.nextInt() % 10;
            if (ones == 3) fout.println("bon");
            else if (ones == 0 || ones == 1 || ones == 6 || ones == 8) fout.println("pon");
            else fout.println("hon");
        } int ones = fin.nextInt() % 10; ones fin.nextInt() % 10 fin.nextInt() fin.nextInt fin 10 if (ones == 3) fout.println("bon");
            else if (ones == 0 || ones == 1 || ones == 6 || ones == 8) fout.println("pon");
            else fout.println("hon"); ones == 3 ones 3 fout.println("bon") fout.println fout "bon" if (ones == 0 || ones == 1 || ones == 6 || ones == 8) fout.println("pon");
            else fout.println("hon"); ones == 0 || ones == 1 || ones == 6 || ones == 8 ones == 6 ones == 0 || ones == 1 || ones == 6 || ones == 8 ones == 0 ones 0 ones == 1 ones 1 ones == 6 ones 6 ones == 8 ones 8 fout.println("pon") fout.println fout "pon" fout.println("hon") fout.println fout "hon" int testNumber testNumber Scanner fin fin PrintWriter fout fout 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 fin, PrintWriter fout) {
            int ones = fin.nextInt() % 10;
            if (ones == 3) fout.println("bon");
            else if (ones == 0 || ones == 1 || ones == 6 || ones == 8) fout.println("pon");
            else fout.println("hon");
        }

    }
} 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 fin, PrintWriter fout) {
            int ones = fin.nextInt() % 10;
            if (ones == 3) fout.println("bon");
            else if (ones == 0 || ones == 1 || ones == 6 || ones == 8) fout.println("pon");
            else fout.println("hon");
        }

    }
} 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 Mehvix
 */
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 fin, PrintWriter fout) {
            int ones = fin.nextInt() % 10;
            if (ones == 3) fout.println("bon");
            else if (ones == 0 || ones == 1 || ones == 6 || ones == 8) fout.println("pon");
            else fout.println("hon");
        }

    }
}

