• + 0 comments
    _ ,num_list = input(),input().split()
    print(all([all([int(i) > 0 for i in num_list]),any([i == i[::-1] for i in num_list])]))