#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main() {
int quant;
scanf("%d", &quant);
int vetor[quant];
char nums[512]; //espaço para os numeros todos como um texto
scanf(" %[^\n]", nums); //lê todos os números como um texto
char *token = strtok (nums," "); //lê até ao primeiro espaço
int pos = 0;
while (token != NULL && pos < quant) {
vetor[pos++] = atoi(token); //guarda o valor convertido em numero no vetor
token = strtok (NULL, " "); //lê até ao próximo espaço a partir de onde terminou
}
int i;
for (i = 0; i < quant; ++i){
printf("%d\n", vetor[i]);
}
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KI2luY2x1ZGUgPHN0cmluZy5oPgoKaW50IG1haW4oKSB7CglpbnQgcXVhbnQ7CglzY2FuZigiJWQiLCAmcXVhbnQpOwoJaW50IHZldG9yW3F1YW50XTsKCWNoYXIgbnVtc1s1MTJdOyAvL2VzcGHDp28gcGFyYSBvcyBudW1lcm9zIHRvZG9zIGNvbW8gdW0gdGV4dG8KCXNjYW5mKCIgJVteXG5dIiwgbnVtcyk7IC8vbMOqIHRvZG9zIG9zIG7Dum1lcm9zIGNvbW8gdW0gdGV4dG8KCWNoYXIgKnRva2VuID0gc3RydG9rIChudW1zLCIgIik7IC8vbMOqIGF0w6kgYW8gcHJpbWVpcm8gZXNwYcOnbwoJaW50IHBvcyA9IDA7CgkKCXdoaWxlICh0b2tlbiAhPSBOVUxMICYmIHBvcyA8IHF1YW50KSB7CgkgICAgdmV0b3JbcG9zKytdID0gYXRvaSh0b2tlbik7IC8vZ3VhcmRhIG8gdmFsb3IgY29udmVydGlkbyBlbSBudW1lcm8gbm8gdmV0b3IKCSAgICB0b2tlbiA9IHN0cnRvayAoTlVMTCwgIiAiKTsgLy9sw6ogYXTDqSBhbyBwcsOzeGltbyBlc3Bhw6dvIGEgcGFydGlyIGRlIG9uZGUgdGVybWlub3UKCX0KCQoJaW50IGk7Cglmb3IgKGkgPSAwOyBpIDwgcXVhbnQ7ICsraSl7CgkgICAgcHJpbnRmKCIlZFxuIiwgdmV0b3JbaV0pOwoJfQp9Cg==