• + 0 comments
    # Enter your code here. Read input from STDIN. Print output to STDOUT
    N = int(input())
    integers = input().split()
    print(all(int(num)>0 for num in integers) and any(num == num[::-1] for num in integers))