Read n strings of brackets. Print VALID or INVALID for each.
Write a complete program: read the input with input() and print the result with print().
input()
print()
Input
3 () ([)] {[()]}
Output
VALID INVALID VALID