Extended Euclid Algorithm#5324

Extended Euclid Algorithm

1 second
128 megabytes
Very easy

Write a program that finds such and that a \cdot x + b \cdot y = 1.

Input

Two positive integers and (1 \le a, b \le 10000).

Output

If and exist, print in the first line YES and in the second line print and , otherwise print in one line NO.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading