a, b, c = map(int, input().split());cs = 1
while True:
if a/cs == b/cs == c/cs: break else: cs+=1
print(a//cs)