#include<iostream>
bool ShowLine(std::size_t N,char F,char E){
for (std::size_t i = 0; i < N; i++){
std::cout << F;
}
for (std::size_t i = 0; i < N; i++){
std::cout << E;
}
std::cout << std::endl;
return true;
}
bool ShowTanbo(std::size_t N){
char F = '0';
char E = '1';
for (std::size_t i = 0; i < N; i++){
ShowLine(N, F, E);
}
std::swap(F, E);
for (std::size_t i = 0; i < N; i++){
ShowLine(N, F, E);
}
return true;
}
int main(){
for (std::size_t i = 1; i <= 5; i++){
ShowTanbo(i);
std::cout << std::endl;
}
return 0;
}
I2luY2x1ZGU8aW9zdHJlYW0+Cgpib29sIFNob3dMaW5lKHN0ZDo6c2l6ZV90IE4sY2hhciBGLGNoYXIgRSl7Cglmb3IgKHN0ZDo6c2l6ZV90IGkgPSAwOyBpIDwgTjsgaSsrKXsKCQlzdGQ6OmNvdXQgPDwgRjsKCX0KCWZvciAoc3RkOjpzaXplX3QgaSA9IDA7IGkgPCBOOyBpKyspewoJCXN0ZDo6Y291dCA8PCBFOwoJfQoJc3RkOjpjb3V0IDw8IHN0ZDo6ZW5kbDsKCglyZXR1cm4gdHJ1ZTsKfQpib29sIFNob3dUYW5ibyhzdGQ6OnNpemVfdCBOKXsKCWNoYXIgRiA9ICcwJzsKCWNoYXIgRSA9ICcxJzsKCWZvciAoc3RkOjpzaXplX3QgaSA9IDA7IGkgPCBOOyBpKyspewoJCVNob3dMaW5lKE4sIEYsIEUpOwoJfQoJc3RkOjpzd2FwKEYsIEUpOwoJZm9yIChzdGQ6OnNpemVfdCBpID0gMDsgaSA8IE47IGkrKyl7CgkJU2hvd0xpbmUoTiwgRiwgRSk7Cgl9CglyZXR1cm4gdHJ1ZTsKfQppbnQgbWFpbigpewoKCWZvciAoc3RkOjpzaXplX3QgaSA9IDE7IGkgPD0gNTsgaSsrKXsKCQlTaG93VGFuYm8oaSk7CgkJc3RkOjpjb3V0IDw8IHN0ZDo6ZW5kbDsJCgl9CgoJcmV0dXJuIDA7Cn0=