P8436 [HackerEarth] lucifer needs help
普及
题目描述

Lucifer and Crowley being two most dangerous demons are fighting to become king of hell. A question is given to them. The one who solves it first becomes King. Given an array A of N elements and an integer M. Print YES if you find three distinct indexes i, j, k such that 1 ≤ i, j, k ≤ N and A[i]+A[j]+A[k] = M else print NO. Help Lucifer to win and become king of hell.

Constraints

1 ≤ N ≤ 1000
0 ≤ Element of array ≤ 1000000000

Input

First line contains two integers N and K separated with a space respectively.
Next line contains N integers separated with space.

Output
In single line print YES or NO

Setter : Shiv Dhingra

SAMPLE INPUT
5 10
2 3 4 5 6

SAMPLE OUTPUT
YES

输入格式

见题面

输出格式

见题面

样例输入
5 10 2 3 4 5 6 SAMPLE
样例输出
YES