• + 0 comments

    lines , s= int(input()),list(map(str, input().split())) if(all(list(map(lambda x : True if int(x)>0 else False, s))) and any(list(map(lambda x : True if x[::-1]==x else False, s)))):print(True) else: print(False)