input() A = tuple(map(int, input().split())) if any(a <= 1 for a in A): print('Yes') else: print('No')