```cpp
include[HTML_REMOVED]
include[HTML_REMOVED]
using namespace std;
long long a[100][100];
int main(){
int n,i,j;
while(cin>>n,n){
for(i=0;i<n;i){
for(j=0;j<n;j){
a[i][j]=pow(2,i)*pow(2,j);
cout<<a[i][j]<<’ ‘;
}
cout<<endl;
}
cout<<endl;
}
return 0;
}