import java.util.Scanner;

public class Main {

    public static void main(String args[]){

        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
       
        int ones = N % 10;

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

    public static void main(String args[]){

        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
       
        int ones = N % 10;

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

        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
       
        int ones = N % 10;

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

        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
       
        int ones = N % 10;

        if(ones == 2 || ones == 4 || ones == 5 || ones == 7 || ones == 9 ){
            System.out.println("hon");
        }
        else if(ones == 0 || ones == 1 || ones == 6 || ones == 8){
            System.out.println("pon");
        }else if(ones == 3){
            System.out.println("bon");
        }
        sc.close();
     
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int ones = N % 10; ones N % 10 N 10 if(ones == 2 || ones == 4 || ones == 5 || ones == 7 || ones == 9 ){
            System.out.println("hon");
        }
        else if(ones == 0 || ones == 1 || ones == 6 || ones == 8){
            System.out.println("pon");
        }else if(ones == 3){
            System.out.println("bon");
        } ones == 2 || ones == 4 || ones == 5 || ones == 7 || ones == 9 ones == 7 ones == 5 ones == 2 || ones == 4 || ones == 5 || ones == 7 || ones == 9 ones == 2 ones 2 ones == 4 ones 4 ones == 5 ones 5 ones == 7 ones 7 ones == 9 ones 9 {
            System.out.println("hon");
        } System.out.println("hon") System.out.println System.out System System.out "hon" if(ones == 0 || ones == 1 || ones == 6 || ones == 8){
            System.out.println("pon");
        }else if(ones == 3){
            System.out.println("bon");
        } 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 {
            System.out.println("pon");
        } System.out.println("pon") System.out.println System.out System System.out "pon" if(ones == 3){
            System.out.println("bon");
        } ones == 3 ones 3 {
            System.out.println("bon");
        } System.out.println("bon") System.out.println System.out System System.out "bon" sc.close() sc.close sc String args[] args public class Main {

    public static void main(String args[]){

        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
       
        int ones = N % 10;

        if(ones == 2 || ones == 4 || ones == 5 || ones == 7 || ones == 9 ){
            System.out.println("hon");
        }
        else if(ones == 0 || ones == 1 || ones == 6 || ones == 8){
            System.out.println("pon");
        }else if(ones == 3){
            System.out.println("bon");
        }
        sc.close();
     
    }
    
} public class Main {

    public static void main(String args[]){

        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
       
        int ones = N % 10;

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

public class Main {

    public static void main(String args[]){

        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
       
        int ones = N % 10;

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