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) {
// Upper part of the pattern
for (int i = 0; i < n - 1; i++) {
// Print 'g' characters
for (int j = 0; j < 2 * n; j++) {
}
// Print 'e' characters
for (int j = 0; j < n; j++) {
}
}
// Middle and bottom part of the pattern
int numRowsBottom = n / 2 + 2;
int maxStars = 2 * (n / 2) + 1;
int gColumns = 2 * n;
for (int i = 0; i < numRowsBottom; i++) {
// Print 'g' characters on the left
for (int j = 0; j < gColumns; j++) {
}
// Print the stars pyramid and spaces
int numStars = 2 * i + 1;
int numSpacesStars = (maxStars - numStars) / 2;
for (int j = 0; j < numSpacesStars; j++) {
}
for (int j = 0; j < numStars; j++) {
}
for (int j = 0; j < numSpacesStars; j++) {
}
// Print 'e' characters on the right
for (int j = 0; j < n; j++) {
}
}
// Last row of stars and 'e's
for (int i = 0; i < 2 * n; i++) {
}
for (int i = 0; i < n; i++) {
}
}
}