#include <iostream>
#include <cstdio>
using namespace std;
char buff[20000000];
int a[1000010];
int main() {
int n;
scanf("%d",&n);
gets(buff);
gets(buff);
int i = 0;
char *p = buff;
int x = 0;
while (true)
{
char c = *p;
if (c == ' ' || c == 0)
{
a[i++] = x;
x = 0;
if (c == 0) break;
}
else
{
x = x * 10 + c - '0';
}
++p;
}
for (int i=0;i<n;++i)
cout << a[i] << " ";
cout << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3N0ZGlvPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKY2hhciBidWZmWzIwMDAwMDAwXTsKaW50IGFbMTAwMDAxMF07CmludCBtYWluKCkgewoJaW50IG47CglzY2FuZigiJWQiLCZuKTsKCWdldHMoYnVmZik7CglnZXRzKGJ1ZmYpOwoKCWludCBpID0gMDsKCWNoYXIgKnAgPSBidWZmOwoJaW50IHggPSAwOwoJd2hpbGUgKHRydWUpCgl7CgkJY2hhciBjID0gKnA7CgkJaWYgKGMgPT0gJyAnIHx8IGMgPT0gMCkKCQl7CgkJCWFbaSsrXSA9IHg7CgkJCXggPSAwOwoJCQlpZiAoYyA9PSAwKSBicmVhazsKCQl9CgkJZWxzZQoJCXsKCQkJeCA9IHggKiAxMCArIGMgLSAnMCc7CgkJfQoJCSsrcDsKCX0KCglmb3IgKGludCBpPTA7aTxuOysraSkKCQljb3V0IDw8IGFbaV0gPDwgIiAiOwoJY291dCA8PCBlbmRsOwoJcmV0dXJuIDA7Cn0=