import numpy as np
a,b,c = map(int, input().split())
print(np.gcd(a,b),np.gcd(a,c),np.gcd(b,c), sep=' ')