• + 0 comments
    N = int(input())
    integers = list(map(int,input().split()))
    
    def is_palindromic(integer):
        string = str(integer)
        reverse_string = string[-1::-1]
        if string == reverse_string :
            return True
            
    print((all(map(lambda x: x>0, integers))) and (any(map(lambda x: is_palindromic(x), integers))))