import java.util.*;
import java.io.*;
 
public class Main {
    public static void main (final String[] args) {
        final Scanner sc = new Scanner(System.in);
        String str = sc.next();
        int n = str.length();
        char last = str.charAt(n-1);
        
        if (last == '3') System.out.println("bon");
        else if (last == '0' || last == '1' || last == '6' || last == '8') System.out.println("pon");
        else System.out.println("hon");
        
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main {
    public static void main (final String[] args) {
        final Scanner sc = new Scanner(System.in);
        String str = sc.next();
        int n = str.length();
        char last = str.charAt(n-1);
        
        if (last == '3') System.out.println("bon");
        else if (last == '0' || last == '1' || last == '6' || last == '8') System.out.println("pon");
        else System.out.println("hon");
        
    }
} Main public static void main (final String[] args) {
        final Scanner sc = new Scanner(System.in);
        String str = sc.next();
        int n = str.length();
        char last = str.charAt(n-1);
        
        if (last == '3') System.out.println("bon");
        else if (last == '0' || last == '1' || last == '6' || last == '8') System.out.println("pon");
        else System.out.println("hon");
        
    } main {
        final Scanner sc = new Scanner(System.in);
        String str = sc.next();
        int n = str.length();
        char last = str.charAt(n-1);
        
        if (last == '3') System.out.println("bon");
        else if (last == '0' || last == '1' || last == '6' || last == '8') System.out.println("pon");
        else System.out.println("hon");
        
    } final Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.next(); str sc.next() sc.next sc int n = str.length(); n str.length() str.length str char last = str.charAt(n-1); last str.charAt(n-1) str.charAt str n-1 n 1 if (last == '3') System.out.println("bon");
        else if (last == '0' || last == '1' || last == '6' || last == '8') System.out.println("pon");
        else System.out.println("hon"); last == '3' last '3' System.out.println("bon") System.out.println System.out System System.out "bon" if (last == '0' || last == '1' || last == '6' || last == '8') System.out.println("pon");
        else System.out.println("hon"); last == '0' || last == '1' || last == '6' || last == '8' last == '6' last == '0' || last == '1' || last == '6' || last == '8' last == '0' last '0' last == '1' last '1' last == '6' last '6' last == '8' last '8' System.out.println("pon") System.out.println System.out System System.out "pon" System.out.println("hon") System.out.println System.out System System.out "hon" final String[] args args public class Main {
    public static void main (final String[] args) {
        final Scanner sc = new Scanner(System.in);
        String str = sc.next();
        int n = str.length();
        char last = str.charAt(n-1);
        
        if (last == '3') System.out.println("bon");
        else if (last == '0' || last == '1' || last == '6' || last == '8') System.out.println("pon");
        else System.out.println("hon");
        
    }
} public class Main {
    public static void main (final String[] args) {
        final Scanner sc = new Scanner(System.in);
        String str = sc.next();
        int n = str.length();
        char last = str.charAt(n-1);
        
        if (last == '3') System.out.println("bon");
        else if (last == '0' || last == '1' || last == '6' || last == '8') System.out.println("pon");
        else System.out.println("hon");
        
    }
} Main
import java.util.*;
import java.io.*;
 
public class Main {
    public static void main (final String[] args) {
        final Scanner sc = new Scanner(System.in);
        String str = sc.next();
        int n = str.length();
        char last = str.charAt(n-1);
        
        if (last == '3') System.out.println("bon");
        else if (last == '0' || last == '1' || last == '6' || last == '8') System.out.println("pon");
        else System.out.println("hon");
        
    }
}