n = 5040

while any(map(lambda m: n % m, [11, 13, 14, 17, 19, 20])):
    n += 5040

print n

236efa7cb0162a0cbea9dbd208b4aac565c1d0da
n = 5040

while any(map(lambda m: n % m, [11, 13, 14, 17, 19, 20])):
    n += 5040

print n
