Read n strings. Print YES/NO for palindrome check.
Write a complete program: read the input with input() and print the result with print().
input()
print()
Input
3 racecar hello level
Output
YES NO YES