Score : $300$ points
Given are integers $S$ and $P$. Is there a pair of positive integers $(N,M)$ such that $N + M = S$ and $N \times M = P$?
Input is given from Standard Input in the following format:
$S$ $P$
If there is a pair of positive integers $(N,M)$ such that $N + M = S$ and $N \times M = P$, print Yes
; otherwise, print No
.
3 2
Yes
1000000000000 1
No