#include <bits/stdc++.h>
int main() {
  int mid, cnt = -1, i, j, n;
  scanf("%d", &n);
  char* arr = (char*)malloc((n * n) * sizeof(char));
  memset(arr, 42, (n * n) * sizeof(char));
  mid = n / 2;
  for (j = 0; j < n; j++) {
    if (j <= n / 2)
      cnt++;
    else
      cnt--;
    for (i = mid - cnt; i <= mid + cnt; i++) arr[n * j + i] = 'D';
  }
  for (i = 0; i < n; i++) {
    for (j = 0; j < n; j++) {
      printf("%c", arr[n * i + j]);
    }
    printf("\n");
  }
  return 0;
}
