#include <bits/stdc++.h>
int main() {
  int n, i, j, k, x, y, z;
  scanf("%d", &n);
  x = n / 2;
  y = x;
  for (i = 1; i <= n / 2 + 1; i++) {
    while (y != 0) {
      printf("*");
      y--;
    }
    for (k = 1; k <= i * 2 - 1; k++) printf("D");
    y = x;
    while (y != 0) {
      printf("*");
      y--;
    }
    x--;
    y = x;
    printf("\n");
  }
  x = 1;
  y = x;
  for (i = n / 2; i >= 1; i--) {
    while (y != 0) {
      printf("*");
      y--;
    }
    for (j = 1; j <= i * 2 - 1; j++) {
      printf("D");
    }
    y = x;
    while (y != 0) {
      printf("*");
      y--;
    }
    x += 1;
    y = x;
    printf("\n");
  }
  return 0;
}
