For this Question: New Year festival of Ying Yang is approaching. There are <b>N</b> spaces available for stalls to be put up. The i<sup>th</sup> stall's price is p<sub>i</sub>. You have X amount of money with you right now and you want to buy <b>atleast 2 stalls</b> from this money. Find whether it is possible. Print "YES" if it is possible, else print "NO", without the quotes.First line of the input contains two integers N, the number of stall spaces and X, the amount of money you have.
The second line of the input contains N space seperated integers.

Constraints:
2 <= N <= 10<sup>5</sup>
1 <= X <= 10<sup>9</sup>
1 <= p<sub>i</sub> <= 10<sup>9</sup>Print "YES" if it is possible for you to buy atleast two spaces in the festival, else print "NO", without the quotes.Sample Input:
5 10
3 6 5 8 11

Sample Input:
YES

Explaination:
You can buy stall no. s 1 and 2 (1- based indexing) to bring the total amount to 3 + 6 = 9, which is less than 10., I have written this Solution Code: n,p=input().split()
arr=list(map(int,input().split()))
arr.sort()

i=0

for j in range(i+1,int(n)):
    if arr[i]+arr[j] <= int(p) :
        print("YES")
        break
    i+=1
else:
    print("NO"), In this Programming Language: Python, Now tell me if this Code is compilable or not?