#include <iostream>
#include <cmath>
using namespace std;
int f(int a) {
int b=1;
for (int i=0; i<a; i++) {
b*=10;
}
return b;
}
int g(int a) {
return (a==0 ? 1 : floor(log10(a))+1);
}
void h(int &i, int &j, int &a, int &b, int &a1, int &b1) {
cout << endl;
a=a1;
b=b1;
i++;
j=0;
}
int main() {
int n, m, a=1, b=0, c, a1=0, b1=1;
cin >> n >> m;
int i=1, j=0;
while (i<=m) {
if (j==n) {
h(i, j, a, b, a1, b1);
}
c=a+b;
a=b;
b=c;
if (j==0) {
a1=a;
b1=b;
}
if (j+g(c)>n) {
cout << c/f(g(c)-n+j);
h(i, j, a, b, a1, b1);
}
else if (i<=m) {
cout << c;
j+=g(c);
}
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CiAKCmludCBmKGludCBhKSB7CglpbnQgYj0xOwoJZm9yIChpbnQgaT0wOyBpPGE7IGkrKykgewoJCSBiKj0xMDsKCX0KCXJldHVybiBiOwp9CiAKaW50IGcoaW50IGEpIHsKCXJldHVybiAoYT09MCA/IDEgOiBmbG9vcihsb2cxMChhKSkrMSk7Cn0KIAp2b2lkIGgoaW50ICZpLCBpbnQgJmosIGludCAmYSwgaW50ICZiLCBpbnQgJmExLCBpbnQgJmIxKSB7Cgljb3V0IDw8IGVuZGw7IAoJYT1hMTsKCWI9YjE7CglpKys7CglqPTA7IAp9CiAKaW50IG1haW4oKSB7CglpbnQgbiwgbSwgYT0xLCBiPTAsIGMsIGExPTAsIGIxPTE7CgljaW4gPj4gbiA+PiBtOwoJaW50IGk9MSwgaj0wOwoJd2hpbGUgKGk8PW0pIHsKCQlpZiAoaj09bikgewoJCSAgIAloKGksIGosIGEsIGIsIGExLCBiMSk7CgkJfQoJCWM9YStiOwoJCWE9YjsKCQliPWM7CgkJaWYgKGo9PTApIHsKCQkgICAgYTE9YTsKCQkgICAJYjE9YjsKCQl9CgkJaWYgKGorZyhjKT5uKSB7CgkJICAgIGNvdXQgPDwgYy9mKGcoYyktbitqKTsKCQkgCWgoaSwgaiwgYSwgYiwgYTEsIGIxKTsKCQl9IAoJCWVsc2UgaWYgKGk8PW0pIHsKCQkgCWNvdXQgPDwgYzsKCQkgCWorPWcoYyk7IAoJCX0gCgl9CglyZXR1cm4gMDsKfQ==