E. AutoCAD Mayhem
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output

It was the first AutoCAD lab for the first-year students at Irony University of Technology.

Labib and his friend Jehad were sitting side by side. The lab task was simple: draw a triangle using the given line measurements. Excited to finish the task quickly, they were racing each other instead of listening to the instructor.

Confident in their abilities, both of them ignored the tutorial completely and drew their own triangles much faster than the others.

A few minutes later, panic struck.

Neither of them remembered the actual measurements from the instructions, so they had no idea whether their drawings were correct. But instead of checking the lab sheet like normal students, they became curious about something much more interesting:

"By pure luck, did we draw similar triangles?!"

You are given the three side lengths of both triangles. Determine whether the two triangles are similar*.

*Two triangles with side lengths $$$(a, b, c)$$$ and $$$(d, e, f)$$$ are considered similar if there exists a permutation $$$(x, y, z)$$$ of $$$(d, e, f)$$$ such that

$$$$$$\displaystyle \dfrac{a}{x} = \dfrac{b}{y} = \dfrac{c}{z}$$$$$$

Input

The input consists of a single line containing six space-separated integers $$$a, b, c, d, e, f$$$ ($$$1 \le a, b, c, d, e, f \le 10^9$$$) — $$$(a, b, c)$$$ are the side lengths of Labib's triangle and $$$(d, e, f)$$$ are the side lengths of Jehad's triangle.

Output

Output "YES" if the triangles are similar, "NO" otherwise.

You can output the answer in any case (upper or lower). For example, the strings "yEs", "yes", "Yes", and "YES" will be recognized as positive responses.

Examples
Input
2 3 4 4 6 8
Output
YES
Input
2 3 4 4 6 7
Output
NO