#arc108a. [arc108_a]Sum and Product

[arc108_a]Sum and Product

Problem Statement

Given are integers SS and PP. Is there a pair of positive integers (N,M)(N,M) such that N+M=SN + M = S and NtimesM=PN \\times M = P?

Constraints

  • All values in input are integers.
  • 1leqS,Pleq10121 \\leq S,P \\leq 10^{12}

Input

Input is given from Standard Input in the following format:

SS PP

Output

If there is a pair of positive integers (N,M)(N,M) such that N+M=SN + M = S and NtimesM=PN \\times M = P, print Yes; otherwise, print No.


Sample Input 1

3 2

Sample Output 1

Yes
  • For example, we have N+M=3N+M=3 and NtimesM=2N \\times M =2 for N=1,M=2N=1,M=2.

Sample Input 2

1000000000000 1

Sample Output 2

No
  • There is no such pair (N,M)(N,M).