def main(): N, M, L = map(int, input().split()) colors = list(map(int, input().split())) color_set = set((L,)) for color in colors: if M in color_set: print("Yes") return new_color_set = {(now_color + color) // 2 for now_color in color_set} color_set.update(new_color_set) if M in color_set: print("Yes") else: print("No") if __name__ == "__main__": main()