#include<cstdio>
#include<iostream>
using namespace std;
int main()
{
int w, h;
scanf("%d %d", &w, &h);
char shop[h][w];
for(int i=0; i<h; i++)
for(int j=0; j<w; j++)
cin>>shop[i][j];
for(int i=0; i<h; i++)
{
for(int j=0; j<w; j++)
cout<<shop[i][j];
cout<<"\n";
}
return 0;
}
I2luY2x1ZGU8Y3N0ZGlvPgojaW5jbHVkZTxpb3N0cmVhbT4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKIAppbnQgbWFpbigpCnsKCWludCB3LCBoOwogCglzY2FuZigiJWQgJWQiLCAmdywgJmgpOwogCgljaGFyIHNob3BbaF1bd107Cglmb3IoaW50IGk9MDsgaTxoOyBpKyspCgkJZm9yKGludCBqPTA7IGo8dzsgaisrKQoJCQljaW4+PnNob3BbaV1bal07CiAKCWZvcihpbnQgaT0wOyBpPGg7IGkrKykKCXsKCQlmb3IoaW50IGo9MDsgajx3OyBqKyspCgkJCWNvdXQ8PHNob3BbaV1bal07CgkJY291dDw8IlxuIjsKCX0KIAoJcmV0dXJuIDA7Cn0=