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