#include <iostream>
void foo1(std::string s)
{
uint64_t a[]={0x1C22414141221C,0x3E0808080A0C08,0x7F01013E40413E,0x3E41403E40413E,0x20207F21212101,0x3E41403F01017F,0x3E41413F01413E,0x404040810217F,0x3E41413E41413E,0x3E41407E41413E};
for(int i=0;i<7;++i,printf("\n"))
for(int c:s)
for(int I=0;I<8;++I)
putchar(1&a[c-48]>>8*i+I?'#':' ');
}
void foo2(std::string s)
{
uint64_t a[]={0x1C22414141221C,0x3E0808080A0C08,0x7F01013E40413E,0x3E41403E40413E,0x20207F21212101,0x3E41403F01017F,0x3E41413F01413E,0x404040810217F,0x3E41413E41413E,0x3E41407E41413E};for(int i=0;i<7;++i,printf("\n"))for(int c:s)for(int I=0;I<8;++I)putchar(1&a[c-48]>>8*i+I?'#':' ');
}
int main() {
foo1("0123456789");
std::cout<<std::endl<<std::endl<<std::endl<<std::endl;
foo2("0123456789");
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdm9pZCBmb28xKHN0ZDo6c3RyaW5nIHMpCnsKICAgIHVpbnQ2NF90IGFbXT17MHgxQzIyNDE0MTQxMjIxQywweDNFMDgwODA4MEEwQzA4LDB4N0YwMTAxM0U0MDQxM0UsMHgzRTQxNDAzRTQwNDEzRSwweDIwMjA3RjIxMjEyMTAxLDB4M0U0MTQwM0YwMTAxN0YsMHgzRTQxNDEzRjAxNDEzRSwweDQwNDA0MDgxMDIxN0YsMHgzRTQxNDEzRTQxNDEzRSwweDNFNDE0MDdFNDE0MTNFfTsKIAogICAgZm9yKGludCBpPTA7aTw3OysraSxwcmludGYoIlxuIikpCiAgICAgICAgZm9yKGludCBjOnMpCiAgICAgICAgICAgIGZvcihpbnQgST0wO0k8ODsrK0kpCiAgICAgICAgICAgICAgICBwdXRjaGFyKDEmYVtjLTQ4XT4+OCppK0k/JyMnOicgJyk7Cn0KIAp2b2lkIGZvbzIoc3RkOjpzdHJpbmcgcykKewogICAgdWludDY0X3QgYVtdPXsweDFDMjI0MTQxNDEy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