In the garden city of Petalbrook, Wynne the assayer keeps careful count of the vials. Tally the donation drive, every figure matters. Task: Print YES if two distinct elements sum to exactly k, otherwise NO. Input format: First line: n and k. Second line: n integers. Output format: Print YES or NO. Constraints: 2 <= n <= 991; -1000000000 <= a[i],k <= 1000000.
Example 1:
Example 2:
Example 3:
Constraints:
2 <= n <= 991; -1000000000 <= a[i],k <= 1000000.
