#include <iostream>
#include <string>
using namespace std;
int main() {
long long n;
string s1 = "", s2 = "";
cin >> n;
for (int i = 0; i < n; i++){//заполняем строки
if (i % 2 == 0){
s1 += "*";
s2 += " ";
}
else {
s2 += "*";
s1 += " ";
}
}
for (int i = 0; i < n; i++){
if (i % 2 == 0){//выводим s1, если строка имеет четный номер
cout << s1 << endl;
}
else cout << s2 << endl;//выводим s2, если строка имеет нечетный номер
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7Cglsb25nIGxvbmcgbjsKCXN0cmluZyBzMSA9ICIiLCBzMiA9ICIiOwoJY2luID4+IG47Cglmb3IgKGludCBpID0gMDsgaSA8IG47IGkrKyl7Ly/Qt9Cw0L/QvtC70L3Rj9C10Lwg0YHRgtGA0L7QutC4IAoJCWlmIChpICUgMiA9PSAwKXsKCQkJczEgKz0gIioiOwoJCQlzMiArPSAiICI7CgkJfQoJCWVsc2UgewoJCQlzMiArPSAiKiI7CgkJCXMxICs9ICIgIjsKCQl9Cgl9Cglmb3IgKGludCBpID0gMDsgaSA8IG47IGkrKyl7CgkJaWYgKGkgJSAyID09IDApey8v0LLRi9Cy0L7QtNC40LwgczEsINC10YHQu9C4INGB0YLRgNC+0LrQsCDQuNC80LXQtdGCINGH0LXRgtC90YvQuSDQvdC+0LzQtdGACgkJCWNvdXQgPDwgczEgPDwgZW5kbDsKCQl9CgkJZWxzZSBjb3V0IDw8IHMyIDw8IGVuZGw7Ly/QstGL0LLQvtC00LjQvCBzMiwg0LXRgdC70Lgg0YHRgtGA0L7QutCwINC40LzQtdC10YIg0L3QtdGH0LXRgtC90YvQuSDQvdC+0LzQtdGACgl9CglyZXR1cm4gMDsKfQ==