#include <bits/stdc++.h>
using namespace std;
long long int fact(long long int n) {
  long long int ans = 1;
  for (long long int i = 1; i <= n; i++) {
    ans *= i;
  }
  return ans;
}
int main() {
  int n;
  cin >> n;
  int p = n / 2;
  int q = 1;
  for (int i = 0; i < n / 2; i++) {
    for (int j = 1; j <= p; j++) {
      printf("*");
    }
    for (int k = 1; k <= q; k++) {
      printf("D");
    }
    q += 2;
    for (int j = 1; j <= p; j++) {
      printf("*");
    }
    printf("\n");
    p--;
  }
  for (int i = 0; i < n; i++) {
    printf("D");
  }
  printf("\n");
  p = 1;
  q -= 2;
  for (int i = 0; i < n / 2; i++) {
    for (int j = 1; j <= p; j++) {
      printf("*");
    }
    for (int k = 1; k <= q; k++) {
      printf("D");
    }
    q -= 2;
    for (int j = 1; j <= p; j++) {
      printf("*");
    }
    printf("\n");
    p++;
  }
}
