Key Pair

easy
1. You will be given an Array 2. You will also be given integral value k 3. You need to print "Yes" if there are two elements in the array that amount to k 4. Else, print "No" 5. Input is handled for you 6. It is a functional problem ,please do not modify main()

Input Format

Input is handled for you.

Output Format

Output is handled for you.

Constraints

1 <= N <= 10^5

Notice

Try First, Check Solution later

1. You should first read the question and watch the question video.
2. Think of a solution approach, then try and submit the question on editor tab.
3. We strongly advise you to watch the solution video for prescribed approach.

Example

Input
9
14 -5 -1 15 6 0 10 4 -8
20
Output
Yes
Previous
Keyboard Row
Next
Kth Distinct Element

Related Questions