CSES - Aalto Competitive Programming 2024 - wk12 - Mon - GCD and LCM
  • Time limit: 2.00 s
  • Memory limit: 512 MB

You are given two positive numbers aa and bb. Calculate two positive numbers xx and yy such that:

  • xyx \le y
  • gcd(aa, bb) == gcd(xx, yy)
  • lcm(aa, bb) == lcm(xx, yy)
  • yxy - x is minimal among all such pairs of (xx, yy)

Input

The first line contains two positive numbers aa and bb.

Output

Output two positive numbers xx and yy (1xy1 \le x \le y) such that gcd(aa, bb) == gcd(xx, yy), lcm(aa, bb) == lcm(xx, yy) and yxy - x is minimal.

Constraints

1a,b1091 \le a, b \le 10^9

Example

Input:

3 4

Output:

3 4

Input:

1 12

Output:

3 4