CodeLab Academy 📞 9936 6696
← List Python · Level 10: Algorithms Code · 100 points ← #927 #929 →

#928. Two pointers: sum k

You get a list sorted in increasing order and k. If two elements at different positions add up to k, print `Yes`, otherwise `No`. ### Input The first line has n, the second line has n integers separated by spaces. (sorted) The third line has k. ### Output `Yes` or `No`.

Examples

Input
2
49 50
98
Output
No
Input
2
26 28
36
Output
No

💡 You can solve it with Python, JavaScript or blocks. Read the input line by line with input(). Don't print a question (like input("Number: ")). Print exactly what the output asks for, nothing more.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!