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