A natural number N is read, followed by N integer values, one at a time. Build a stack implemented on an array with index top, applying the following rule:
- if the current value is not already on the stack, push it;
- if the current value is already on the stack (at any level), ignore it.
After processing all N values, print the contents of the stack from top to bottom, values separated by single spaces. If the stack is empty, print the word VIDA.
Do not use STL containers.