#include <iostream>
using namespace std;
int main() {
int foo[] = {0, foo[0] + 1, foo[1] + 2, foo[2] + 4 };
for(const auto i : foo) cout << i << ' ';
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgZm9vW10gPSB7MCwgZm9vWzBdICsgMSwgZm9vWzFdICsgMiwgZm9vWzJdICsgNCB9OwoJCglmb3IoY29uc3QgYXV0byBpIDogZm9vKSBjb3V0IDw8IGkgPDwgJyAnOwp9