#include <iostream>
using namespace std;
int main() {
int n;
cin>>n;
for (int i=-n+1;i<n;i++){
for (int j=-n+1;j<n;j++){
if (i-j==0||i==0||(j==n-1 && i>0)||(j==-n+1 &&i<0) )
cout<<'*';
else cout<<" ";
}
cout<<endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgbjsKCWNpbj4+bjsKCWZvciAoaW50IGk9LW4rMTtpPG47aSsrKXsKCQlmb3IgKGludCBqPS1uKzE7ajxuO2orKyl7CgkJCWlmIChpLWo9PTB8fGk9PTB8fChqPT1uLTEgJiYgaT4wKXx8KGo9PS1uKzEgJiZpPDApICkKCQkJCWNvdXQ8PCcqJzsKCQkJZWxzZSBjb3V0PDwiICI7CgkJCX0KCQkJY291dDw8ZW5kbDsKCQl9CgkKCXJldHVybiAwOwp9