import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    int n = Integer.parseInt(in.nextLine());
    int rem = n%10;
    if (rem == 2 || rem == 4 || rem == 5 || rem == 7 || rem == 9) {
    	System.out.println("hon");
    } else if (rem == 0 || rem == 1 || rem == 6 || rem == 8) {
    	System.out.println("pon");
    } else {
    	System.out.println("bon");
    }
  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    int n = Integer.parseInt(in.nextLine());
    int rem = n%10;
    if (rem == 2 || rem == 4 || rem == 5 || rem == 7 || rem == 9) {
    	System.out.println("hon");
    } else if (rem == 0 || rem == 1 || rem == 6 || rem == 8) {
    	System.out.println("pon");
    } else {
    	System.out.println("bon");
    }
  }
} Main public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    int n = Integer.parseInt(in.nextLine());
    int rem = n%10;
    if (rem == 2 || rem == 4 || rem == 5 || rem == 7 || rem == 9) {
    	System.out.println("hon");
    } else if (rem == 0 || rem == 1 || rem == 6 || rem == 8) {
    	System.out.println("pon");
    } else {
    	System.out.println("bon");
    }
  } main {
    Scanner in = new Scanner(System.in);
    int n = Integer.parseInt(in.nextLine());
    int rem = n%10;
    if (rem == 2 || rem == 4 || rem == 5 || rem == 7 || rem == 9) {
    	System.out.println("hon");
    } else if (rem == 0 || rem == 1 || rem == 6 || rem == 8) {
    	System.out.println("pon");
    } else {
    	System.out.println("bon");
    }
  } Scanner in = new Scanner(System.in); in new Scanner(System.in) int n = Integer.parseInt(in.nextLine()); n Integer.parseInt(in.nextLine()) Integer.parseInt Integer in.nextLine() in.nextLine in int rem = n%10; rem n%10 n 10 if (rem == 2 || rem == 4 || rem == 5 || rem == 7 || rem == 9) {
    	System.out.println("hon");
    } else if (rem == 0 || rem == 1 || rem == 6 || rem == 8) {
    	System.out.println("pon");
    } else {
    	System.out.println("bon");
    } rem == 2 || rem == 4 || rem == 5 || rem == 7 || rem == 9 rem == 7 rem == 5 rem == 2 || rem == 4 || rem == 5 || rem == 7 || rem == 9 rem == 2 rem 2 rem == 4 rem 4 rem == 5 rem 5 rem == 7 rem 7 rem == 9 rem 9 {
    	System.out.println("hon");
    } System.out.println("hon") System.out.println System.out System System.out "hon" if (rem == 0 || rem == 1 || rem == 6 || rem == 8) {
    	System.out.println("pon");
    } else {
    	System.out.println("bon");
    } rem == 0 || rem == 1 || rem == 6 || rem == 8 rem == 6 rem == 0 || rem == 1 || rem == 6 || rem == 8 rem == 0 rem 0 rem == 1 rem 1 rem == 6 rem 6 rem == 8 rem 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" String[] args args public class Main {
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    int n = Integer.parseInt(in.nextLine());
    int rem = n%10;
    if (rem == 2 || rem == 4 || rem == 5 || rem == 7 || rem == 9) {
    	System.out.println("hon");
    } else if (rem == 0 || rem == 1 || rem == 6 || rem == 8) {
    	System.out.println("pon");
    } else {
    	System.out.println("bon");
    }
  }
} public class Main {
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    int n = Integer.parseInt(in.nextLine());
    int rem = n%10;
    if (rem == 2 || rem == 4 || rem == 5 || rem == 7 || rem == 9) {
    	System.out.println("hon");
    } else if (rem == 0 || rem == 1 || rem == 6 || rem == 8) {
    	System.out.println("pon");
    } else {
    	System.out.println("bon");
    }
  }
} Main
import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    int n = Integer.parseInt(in.nextLine());
    int rem = n%10;
    if (rem == 2 || rem == 4 || rem == 5 || rem == 7 || rem == 9) {
    	System.out.println("hon");
    } else if (rem == 0 || rem == 1 || rem == 6 || rem == 8) {
    	System.out.println("pon");
    } else {
    	System.out.println("bon");
    }
  }
}