#include <bits/stdc++.h>
using namespace std;
char a[150][150];
int main() {
  int n, mid, len, ren;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) a[i][j] = '*';
  }
  mid = n / 2;
  a[0][mid] = 'D';
  len = mid;
  ren = mid;
  for (int i = 1; i <= mid; i++) {
    len--;
    ren++;
    for (int j = len; j <= ren; j++) a[i][j] = 'D';
  }
  for (int i = mid + 1; i < n; i++) {
    len++;
    ren--;
    for (int j = len; j <= ren; j++) a[i][j] = 'D';
  }
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) printf("%c", a[i][j]);
    printf("\n");
  }
  return 0;
}
