Unable to understand Input format

Mam im unable to uderstand the input format.Can u please tell me where my code has error.

for the test case
6
1
2
3
1
4
5
1
correct ans: 0 3
debug for this

Mam IM not getting it.frst is the no of element in array how we add n number of element in an array according to input format?