• + 0 comments
    n, l = int(input()), list(input().split(" "))
    if all([ int(x)>=0 for x in l])  and any([all([x[i] == x[len(x)-i-1] for i in range(len(x)//2)]) for x in l])     : print(True) 
    else: print(False)