import java.util.Scanner;
import java.util.StringTokenizer;

 class Main {

    public static void main(String[] args) {

        Scanner fastReader = new Scanner(System.in);
        find( fastReader.nextInt() );

    }

    public static void find( int num ){

        int lastDigit = num % 10;

        if( lastDigit == 2 || lastDigit == 4 || lastDigit == 5 || lastDigit == 7 || lastDigit == 9 ){
            System.out.println("hon");
        }
        else if( lastDigit == 0 || lastDigit == 1 || lastDigit == 6 || lastDigit == 8 ){
            System.out.println("pon");
        }else{
            System.out.println("bon");
        }
    }
}
 import java.util.Scanner; Scanner java.util import java.util.StringTokenizer; StringTokenizer java.util class Main {

    public static void main(String[] args) {

        Scanner fastReader = new Scanner(System.in);
        find( fastReader.nextInt() );

    }

    public static void find( int num ){

        int lastDigit = num % 10;

        if( lastDigit == 2 || lastDigit == 4 || lastDigit == 5 || lastDigit == 7 || lastDigit == 9 ){
            System.out.println("hon");
        }
        else if( lastDigit == 0 || lastDigit == 1 || lastDigit == 6 || lastDigit == 8 ){
            System.out.println("pon");
        }else{
            System.out.println("bon");
        }
    }
} Main public static void main(String[] args) {

        Scanner fastReader = new Scanner(System.in);
        find( fastReader.nextInt() );

    } main {

        Scanner fastReader = new Scanner(System.in);
        find( fastReader.nextInt() );

    } Scanner fastReader = new Scanner(System.in); fastReader new Scanner(System.in) find( fastReader.nextInt() ) find fastReader.nextInt() fastReader.nextInt fastReader String[] args args public static void find( int num ){

        int lastDigit = num % 10;

        if( lastDigit == 2 || lastDigit == 4 || lastDigit == 5 || lastDigit == 7 || lastDigit == 9 ){
            System.out.println("hon");
        }
        else if( lastDigit == 0 || lastDigit == 1 || lastDigit == 6 || lastDigit == 8 ){
            System.out.println("pon");
        }else{
            System.out.println("bon");
        }
    } find {

        int lastDigit = num % 10;

        if( lastDigit == 2 || lastDigit == 4 || lastDigit == 5 || lastDigit == 7 || lastDigit == 9 ){
            System.out.println("hon");
        }
        else if( lastDigit == 0 || lastDigit == 1 || lastDigit == 6 || lastDigit == 8 ){
            System.out.println("pon");
        }else{
            System.out.println("bon");
        }
    } int lastDigit = num % 10; lastDigit num % 10 num 10 if( lastDigit == 2 || lastDigit == 4 || lastDigit == 5 || lastDigit == 7 || lastDigit == 9 ){
            System.out.println("hon");
        }
        else if( lastDigit == 0 || lastDigit == 1 || lastDigit == 6 || lastDigit == 8 ){
            System.out.println("pon");
        }else{
            System.out.println("bon");
        } lastDigit == 2 || lastDigit == 4 || lastDigit == 5 || lastDigit == 7 || lastDigit == 9 lastDigit == 7 lastDigit == 5 lastDigit == 2 || lastDigit == 4 || lastDigit == 5 || lastDigit == 7 || lastDigit == 9 lastDigit == 2 lastDigit 2 lastDigit == 4 lastDigit 4 lastDigit == 5 lastDigit 5 lastDigit == 7 lastDigit 7 lastDigit == 9 lastDigit 9 {
            System.out.println("hon");
        } System.out.println("hon") System.out.println System.out System System.out "hon" if( lastDigit == 0 || lastDigit == 1 || lastDigit == 6 || lastDigit == 8 ){
            System.out.println("pon");
        }else{
            System.out.println("bon");
        } lastDigit == 0 || lastDigit == 1 || lastDigit == 6 || lastDigit == 8 lastDigit == 6 lastDigit == 0 || lastDigit == 1 || lastDigit == 6 || lastDigit == 8 lastDigit == 0 lastDigit 0 lastDigit == 1 lastDigit 1 lastDigit == 6 lastDigit 6 lastDigit == 8 lastDigit 8 {
            System.out.println("pon");
        } System.out.println("pon") System.out.println System.out System System.out "pon" {
            System.out.println("bon");
        } System.out.println("bon") System.out.println System.out System System.out "bon" int num num
import java.util.Scanner;
import java.util.StringTokenizer;

 class Main {

    public static void main(String[] args) {

        Scanner fastReader = new Scanner(System.in);
        find( fastReader.nextInt() );

    }

    public static void find( int num ){

        int lastDigit = num % 10;

        if( lastDigit == 2 || lastDigit == 4 || lastDigit == 5 || lastDigit == 7 || lastDigit == 9 ){
            System.out.println("hon");
        }
        else if( lastDigit == 0 || lastDigit == 1 || lastDigit == 6 || lastDigit == 8 ){
            System.out.println("pon");
        }else{
            System.out.println("bon");
        }
    }
}

