import java.util.Scanner;
class Ideone {
public static void main
(String[] args
) { // Scanner scanner = new Scanner(System.in);
// System.out.print("Enter an integer (e.g., 3 or 5): ");
// int n = scanner.nextInt();
// printPattern(n);
// scanner.close();
printPattern(3);
}
public static void printPattern(int n) {
// Calculate the height of the star pyramid
int starPyramidHeight = (n / 2) + 1;
// Top rectangular part of the pattern
for (int i = 0; i < n - starPyramidHeight; i++) {
printSpaces(2 * n);
printEs(n);
}
// Middle section with star pyramid
for (int i = 0; i < starPyramidHeight; i++) {
// Print spaces for the left side of the pattern
int numSpacesLeft = 2 * n - (starPyramidHeight - 1 - i);
printSpaces(numSpacesLeft);
// Print the pyramid stars
int numStars = 2 * i + 1;
printStars(numStars);
// Print 'e' characters on the right
int numEs = n - i;
printEs(numEs);
}
// Bottom section with full row of stars
printStars(2 * n);
printEs(n);
}
private static void printSpaces(int count) {
for (int i = 0; i < count; i++) {
}
}
private static void printEs(int count) {
for (int i = 0; i < count; i++) {
}
}
private static void printStars(int count) {
for (int i = 0; i < count; i++) {
}
}
}