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