#include <bits/stdc++.h>
using namespace std;
const double pi = 4.0 * atan(1.0);
int main() {
  int n, tmp;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    tmp = (i <= (n / 2 + 1) ? (i) : (1 + n - i));
    for (int j = 1; j <= (n + 1 - 2 * tmp) / 2; j++) printf("*");
    for (int j = 1; j <= (2 * tmp - 1); j++) printf("D");
    for (int j = 1; j <= (n + 1 - 2 * tmp) / 2; j++) printf("*");
    printf("\n");
  }
  return 0;
}
