(lambda a, b, c, math: print(f'{math.gcd(a, b)} {math.gcd(a, c)} {math.gcd(b, c)}'))(*map(int, input().strip().split()), __import__('math'))