Reduce a fraction#2674

Reduce a fraction

1 second
128 megabytes
Very easy

Reduce the given fraction to lowest terms.

Input

The numerator and denominator of the fraction are given (integers, with absolute values no more than 10^9).

Output

Print the numerator and denominator of the simplified fraction, separated by a space.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading