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