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