import java.util.*;
public class Main {
    public void solve() {
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int A = N%10;
        if(A==3)System.out.println("bon");
        else if(A==0||A==1||A==6||A==8)System.out.println("pon");
        else System.out.println("hon");

    }
    public static void main(String[] args) {
        new Main().solve();
    }
    } import java.util.*; util.* java public class Main {
    public void solve() {
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int A = N%10;
        if(A==3)System.out.println("bon");
        else if(A==0||A==1||A==6||A==8)System.out.println("pon");
        else System.out.println("hon");

    }
    public static void main(String[] args) {
        new Main().solve();
    }
    } Main public void solve() {
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int A = N%10;
        if(A==3)System.out.println("bon");
        else if(A==0||A==1||A==6||A==8)System.out.println("pon");
        else System.out.println("hon");

    } solve {
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int A = N%10;
        if(A==3)System.out.println("bon");
        else if(A==0||A==1||A==6||A==8)System.out.println("pon");
        else System.out.println("hon");

    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int A = N%10; A N%10 N 10 if(A==3)System.out.println("bon");
        else if(A==0||A==1||A==6||A==8)System.out.println("pon");
        else System.out.println("hon"); A==3 A 3 System.out.println("bon") System.out.println System.out System System.out "bon" if(A==0||A==1||A==6||A==8)System.out.println("pon");
        else System.out.println("hon"); A==0||A==1||A==6||A==8 A==6 A==0||A==1||A==6||A==8 A==0 A 0 A==1 A 1 A==6 A 6 A==8 A 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" public static void main(String[] args) {
        new Main().solve();
    } main {
        new Main().solve();
    } new Main().solve() new Main().solve new Main() String[] args args public class Main {
    public void solve() {
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int A = N%10;
        if(A==3)System.out.println("bon");
        else if(A==0||A==1||A==6||A==8)System.out.println("pon");
        else System.out.println("hon");

    }
    public static void main(String[] args) {
        new Main().solve();
    }
    } public class Main {
    public void solve() {
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int A = N%10;
        if(A==3)System.out.println("bon");
        else if(A==0||A==1||A==6||A==8)System.out.println("pon");
        else System.out.println("hon");

    }
    public static void main(String[] args) {
        new Main().solve();
    }
    } Main
import java.util.*;
public class Main {
    public void solve() {
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int A = N%10;
        if(A==3)System.out.println("bon");
        else if(A==0||A==1||A==6||A==8)System.out.println("pon");
        else System.out.println("hon");

    }
    public static void main(String[] args) {
        new Main().solve();
    }
    }