u = [];
for i in range(1, 999999999):
    if i % 11 == 0 and i % 12 == 0 and i % 13 == 0 and i % 14 == 0 and i % 15 == 0 and i % 16 == 0 and i % 17 == 0 and i % 18 == 0 and i % 19 == 0 and i % 20 == 0:
        u.append(i);
u = sorted(u);
print(u[0]);
w = input();
