An optical technician has a collection of lenses, each with an integer magnification factor.
The magnification factors of the lenses are given in a sorted array L of length N.
By stacking two distinct lenses together, their magnifications multiply.
That is, using lens i and lens j (i not equal to j), the total magnification becomes Li×Lj.
You are given a target magnification M.
Determine whether there exists any pair of distinct lenses whose combined magnification is exactly M.
Input Format:
The first line contains two integers N and M (2≤N≤2⋅105, 1≤M≤1012) --- the number of lenses and the target magnification.
The second line contains N integers L1,L2,…,LN (1≤Li≤106), representing the magnification factors of the lenses. The array is sorted in non-decreasing order.
Output Format:
Output YES if there exists a pair of lenses with magnifications that multiply to
M. Otherwise, output NO.