Massive Numbers#1213

Massive Numbers

1 second
128 megabytes
Very easy

A number is called massive if it can be written in the form a^n, that is, raised to the power of .

You are given two massive numbers a^b and c^d, each written in the format "base^exponent". Your task is to compare these two numbers.

Input

Two massive numbers in the format "base^exponent" (1 \le \text{base}, \text{exponent} \le 1000). It is guaranteed that the two numbers are different.

Output

Print the greater of the two given massive numbers.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading