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