Large screen#6317

Large screen

1 second
256 megabytes
Easy

A husband and wife went to the store to buy a new TV.

"Let's get this one, the white one," the wife suggested. "No!" the husband replied. "It's smaller than the one we have at home! We agreed to buy a bigger TV!" "How can that be?" the wife was puzzled. "I distinctly remember our TV is inches, and this one is ."

"That's correct," the husband said, "but our TV has a different aspect ratio, so its screen area is still larger. It seems we need a special app to help with this."

Input

The first line contains three positive integers describing the first TV. The first number is the diagonal length in inches. Following this number is a space, then the second and third numbers, which are the numerator and denominator of the fraction representing the horizontal to vertical ratio, separated by a colon. The second line contains three natural numbers describing the second TV in the same format. All numbers do not exceed .

Output

On the first and only line, output if the area of the first TV is larger, if the area of the second TV is larger, and if the areas of the TVs are equal.

Examples

Example 1

Loading
Loading