#include <bits/stdc++.h>
int a[101][101] = {0};
int main() {
  int i;
  int j;
  int n;
  scanf("%d", &n);
  int count = 0;
  int mid = n / 2;
  for (i = 0; i <= n / 2; i++) {
    int temp = 1;
    a[i][mid] = 1;
    while (temp <= count) {
      a[i][mid + temp] = 1;
      temp++;
    }
    temp = 1;
    a[i][mid] = 1;
    while (temp <= count) {
      a[i][mid - temp] = 1;
      temp++;
    }
    count += 1;
  }
  count = count - 2;
  for (i = n / 2 + 1; i < n; i++) {
    int temp = 1;
    a[i][mid] = 1;
    while (temp <= count) {
      a[i][mid + temp] = 1;
      temp++;
    }
    temp = 1;
    a[i][mid] = 1;
    while (temp <= count) {
      a[i][mid - temp] = 1;
      temp++;
    }
    count -= 1;
  }
  for (i = 0; i < n; i++) {
    for (j = 0; j < n; j++) {
      if (a[i][j] == 0) {
        printf("*");
      } else
        printf("D");
    }
    printf("\n");
  }
  return 0;
}
