def greatest_common_divisor(*args: int) -> int: for i in range(min(args), 0, -1): dl = lambda x: x // i == x / i if all(map(dl, args)): break return i