#include <iostream>
#include <vector>
using namespace std;
void imprime(vector<int>& v) {
for(int x = 0; x < v.size(); x++)
cout << v[x] << " ";
}
void fibonacci(int x, int y, vector<int>& fi) {
int z = 0;
for (int b = 0; b < fi.size(); b++) {
z = x + y;
fi[b] = z;
x = y;
y = z;
}
}
int main() {
int valor1, valor2, numeroElementos;
while (cin >> valor1 >> valor2 >> numeroElementos) {
vector<int> numeros(numeroElementos);
fibonacci(valor1, valor2, numeros);
imprime(numeros);
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKdm9pZCBpbXByaW1lKHZlY3RvcjxpbnQ+JiB2KSB7CiAgICBmb3IoaW50IHggPSAwOyB4IDwgdi5zaXplKCk7IHgrKykKICAgICAgICBjb3V0IDw8IHZbeF0gPDwgIiAiOwp9Cgp2b2lkIGZpYm9uYWNjaShpbnQgeCwgaW50IHksIHZlY3RvcjxpbnQ+JiBmaSkgewogICAgaW50IHogPSAwOwogICAgZm9yIChpbnQgYiA9IDA7IGIgPCBmaS5zaXplKCk7IGIrKykgewogICAgICAgIHogPSB4ICsgeTsKICAgICAgICBmaVtiXSA9IHo7CiAgICAgICAgeCA9IHk7CiAgICAgICAgeSA9IHo7ICAgICAgCiAgICB9ICAgICAgICAgICAKfQoKaW50IG1haW4oKSB7CiAgICBpbnQgdmFsb3IxLCB2YWxvcjIsIG51bWVyb0VsZW1lbnRvczsKCiAgICB3aGlsZSAoY2luID4+IHZhbG9yMSA+PiB2YWxvcjIgPj4gbnVtZXJvRWxlbWVudG9zKSB7CgkgCXZlY3RvcjxpbnQ+IG51bWVyb3MobnVtZXJvRWxlbWVudG9zKTsKICAgICAgICBmaWJvbmFjY2kodmFsb3IxLCB2YWxvcjIsIG51bWVyb3MpOwogICAgICAgIGltcHJpbWUobnVtZXJvcyk7CiAgICB9CiAgICByZXR1cm4gMDsKfQ==