The input file contains 2 lines.
The first line contains 4 integers,these respectively is $k$,$m$,$n$,$p$。(2 $\leq$ $k$ $\leq $200000,2 $ \leq $ $p$$ \leq $ $10^{15}$)
The second line contains $k$ integers,represent the set $S$,the elements in the set guarantee less than or equal to $10^{15}$.
We guarantee that $k$ is greater than or equal to the number of edges.