
import java.io.InputStream;
import java.io.PrintStream;
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        solve(System.in, System.out);
    }

    static void solve(InputStream is, PrintStream os) {
        // Your code here!
        Scanner scan = new Scanner(is);
        int N = scan.nextInt();

        switch (N%10) {
            case 0:
            case 1:
            case 6:
            case 8:
                os.println("pon");
                break;
            case 2:
            case 4:
            case 5:
            case 7:
            case 9:
                os.println("hon");
                break;
            case 3:
                os.println("bon");
        }

    }
} import java.io.InputStream; InputStream java.io import java.io.PrintStream; PrintStream java.io import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        solve(System.in, System.out);
    }

    static void solve(InputStream is, PrintStream os) {
        // Your code here!
        Scanner scan = new Scanner(is);
        int N = scan.nextInt();

        switch (N%10) {
            case 0:
            case 1:
            case 6:
            case 8:
                os.println("pon");
                break;
            case 2:
            case 4:
            case 5:
            case 7:
            case 9:
                os.println("hon");
                break;
            case 3:
                os.println("bon");
        }

    }
} Main public static void main(String[] args) throws Exception {
        solve(System.in, System.out);
    } main {
        solve(System.in, System.out);
    } solve(System.in, System.out) solve System.in System System.in System.out System System.out String[] args args static void solve(InputStream is, PrintStream os) {
        // Your code here!
        Scanner scan = new Scanner(is);
        int N = scan.nextInt();

        switch (N%10) {
            case 0:
            case 1:
            case 6:
            case 8:
                os.println("pon");
                break;
            case 2:
            case 4:
            case 5:
            case 7:
            case 9:
                os.println("hon");
                break;
            case 3:
                os.println("bon");
        }

    } solve {
        // Your code here!
        Scanner scan = new Scanner(is);
        int N = scan.nextInt();

        switch (N%10) {
            case 0:
            case 1:
            case 6:
            case 8:
                os.println("pon");
                break;
            case 2:
            case 4:
            case 5:
            case 7:
            case 9:
                os.println("hon");
                break;
            case 3:
                os.println("bon");
        }

    } Scanner scan = new Scanner(is); scan new Scanner(is) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan switch (N%10) {
            case 0:
            case 1:
            case 6:
            case 8:
                os.println("pon");
                break;
            case 2:
            case 4:
            case 5:
            case 7:
            case 9:
                os.println("hon");
                break;
            case 3:
                os.println("bon");
        } N%10 N 10 case 0: 0 case 0: case 1: 1 case 1: case 6: 6 case 6: case 8: 8 case 8: os.println("pon") os.println os "pon" break; case 2: 2 case 2: case 4: 4 case 4: case 5: 5 case 5: case 7: 7 case 7: case 9: 9 case 9: os.println("hon") os.println os "hon" break; case 3: 3 case 3: os.println("bon") os.println os "bon" InputStream is is PrintStream os os public class Main {
    public static void main(String[] args) throws Exception {
        solve(System.in, System.out);
    }

    static void solve(InputStream is, PrintStream os) {
        // Your code here!
        Scanner scan = new Scanner(is);
        int N = scan.nextInt();

        switch (N%10) {
            case 0:
            case 1:
            case 6:
            case 8:
                os.println("pon");
                break;
            case 2:
            case 4:
            case 5:
            case 7:
            case 9:
                os.println("hon");
                break;
            case 3:
                os.println("bon");
        }

    }
} public class Main {
    public static void main(String[] args) throws Exception {
        solve(System.in, System.out);
    }

    static void solve(InputStream is, PrintStream os) {
        // Your code here!
        Scanner scan = new Scanner(is);
        int N = scan.nextInt();

        switch (N%10) {
            case 0:
            case 1:
            case 6:
            case 8:
                os.println("pon");
                break;
            case 2:
            case 4:
            case 5:
            case 7:
            case 9:
                os.println("hon");
                break;
            case 3:
                os.println("bon");
        }

    }
} Main

import java.io.InputStream;
import java.io.PrintStream;
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        solve(System.in, System.out);
    }

    static void solve(InputStream is, PrintStream os) {
        // Your code here!
        Scanner scan = new Scanner(is);
        int N = scan.nextInt();

        switch (N%10) {
            case 0:
            case 1:
            case 6:
            case 8:
                os.println("pon");
                break;
            case 2:
            case 4:
            case 5:
            case 7:
            case 9:
                os.println("hon");
                break;
            case 3:
                os.println("bon");
        }

    }
}