#include <cstdio>
#include <cstdlib>
#define forn(i, n) for (int i = 0; i < (int)(n); i++)
long long rdtsc()
{
asm("rdtsc");
}
int main( int argc, char *argv[] )
{
if (argc < 3)
{
puts("Usage: <n1> <n2>");
return 0;
}
srand(rdtsc());
int n[2];
n[0] = atoi(argv[1]);
n[1] = atoi(argv[2]);
forn(t, 2)
{
forn(i, n[t])
putc('0' + !i + rand() % (10 - !i), stdout);
puts("");
}
return 0;
}