Problem: Apples and Oranges. You thought this question was gone when you passed class 6th. WELL YOU ARE WRONG. It's back.

See we have n apples and m oranges. You need to put these apples and oranges into some boxes. Though we've put some terms&conditions with a bright *

1. Number of apples should be same in each box.

2. Number of oranges should be same in each box

3. Number of boxes should be greatest under the above two conditions

Input

First line contains n & m, two integers. n lies in 1 to 10^9. m lies in 1 to 10^9
Output
Number of apples and oranges in each box

Sample Input

12028 12772

Sample Output
97 103

 Explanation 
Seriously? Just look at the numbers. Try Harder. Again look at the numbers.

SAMPLE INPUT
12028 12772

SAMPLE OUTPUT
97 103

Solution (in PYTHON):

Solution:
'''
# Read input from stdin and provide input before running code

name = raw_input('What is your name?\n')
print 'Hi, %s.' % name
'''
l = raw_input()
[a,b] = l.split()
a = int(a)
b = int(b)

def gcd(a,b):
	if b==0:
		return a
	else:
		while not b==0:
			c=b
			b=a%b
			a=c
		return a
g = gcd(a,b)	
print str(a/g)+' '+str(b/g)