#include<bits/stdc++.h>
using namespace std;
#define el "\n"
#define ll long long
#define ull unsigned long long
#define se second
#define fi first
#define be begin()
#define en end()
#define Faster cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(0);
int main()
{
Faster;
int n; cin >> n;
int m = 2 * n - 1;
int a[n][m] = {0};
for(int i = 0; i < n; i++)
{
a[i][i] = 1;
a[i][m - i - 1] = 1;
}
int j = m / 2, k = m / 2;;
for(int i = 0; i < n; i++)
{
a[i][j--] = 1;
a[i][k++] = 1;
}
for(int i = 0; i < n; i++)
{
for(int j = 0; j < m; j++)
{
if(a[i][j] == 1) cout << "$";
else cout << "E";
}
cout << el;
}
return 0;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKI2RlZmluZSBlbCAiXG4iCiNkZWZpbmUgbGwgbG9uZyBsb25nCiNkZWZpbmUgdWxsIHVuc2lnbmVkIGxvbmcgbG9uZwojZGVmaW5lIHNlIHNlY29uZAojZGVmaW5lIGZpIGZpcnN0CiNkZWZpbmUgYmUgYmVnaW4oKQojZGVmaW5lIGVuIGVuZCgpCiNkZWZpbmUgRmFzdGVyIGNpbi50aWUoMCk7IGNvdXQudGllKDApOyBpb3NfYmFzZTo6c3luY193aXRoX3N0ZGlvKDApOwoKaW50IG1haW4oKQp7CiAgICBGYXN0ZXI7CiAgICBpbnQgbjsgY2luID4+IG47CiAgICBpbnQgbSA9IDIgKiBuIC0gMTsKICAgIGludCBhW25dW21dID0gezB9OwogICAgZm9yKGludCBpID0gMDsgaSA8IG47IGkrKykKICAgIHsKICAgICAgICBhW2ldW2ldID0gMTsKICAgICAgICBhW2ldW20gLSBpIC0gMV0gPSAxOwogICAgfQogICAgaW50IGogPSBtIC8gMiwgayA9IG0gLyAyOzsKICAgIGZvcihpbnQgaSA9IDA7IGkgPCBuOyBpKyspCiAgICB7CiAgICAgICAgYVtpXVtqLS1dID0gMTsKICAgICAgICBhW2ldW2srK10gPSAxOwogICAgfQogICAgZm9yKGludCBpID0gMDsgaSA8IG47IGkrKykKICAgIHsKICAgICAgICBmb3IoaW50IGogPSAwOyBqIDwgbTsgaisrKQogICAgICAgIHsKICAgICAgICAgICAgaWYoYVtpXVtqXSA9PSAxKSBjb3V0IDw8ICIkIjsKICAgICAgICAgICAgZWxzZSBjb3V0IDw8ICJFIjsKICAgICAgICB9CiAgICAgICAgY291dCA8PCBlbDsKICAgIH0KICAgIHJldHVybiAwOwp9Cg==