a, b, c = map(int, input().split())
separator = []
def nod(x, y):
while x != y:
if x > y:
x = x - y
else:
y = y - x
return x
separator.append(nod(a,b))
separator.append(nod(a,c))
separator.append(nod(b,c))
print(*separator)