There are candies inside a box. When packed in sets of 20, there are 4 left over; when packed in sets of 30, there are 14 left over; when packed in sets of 50, there are 24 left over; and when packed in sets of 70, there are 34 left over. Determine the minimum number of candies inside the box.
0 9999 1 [OP_LIST_ARANGE] 20 4 [OP_LIST_DIVIDE_AND_REMAIN] 30 14 [OP_LIST_DIVIDE_AND_REMAIN] 50 24 [OP_LIST_DIVIDE_AND_REMAIN] 70 34 [OP_LIST_DIVIDE_AND_REMAIN] 1 [OP_LIST_MIN]
var_a = 0
var_b = 9999
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 20
var_e = 4
list_b = [] 
var_d = int(var_d)
var_e = int(var_e)
if var_e < 0:
    var_e = var_e + var_d
for i in list_a:
    i = int(i)
    if i%var_d == var_e:
        list_b.append(i)
var_f = 30
var_g = 14
list_c = [] 
var_f = int(var_f)
var_g = int(var_g)
if var_g < 0:
    var_g = var_g + var_f
for i in list_b:
    i = int(i)
    if i%var_f == var_g:
        list_c.append(i)
var_h = 50
var_i = 24
list_d = [] 
var_h = int(var_h)
var_i = int(var_i)
if var_i < 0:
    var_i = var_i + var_h
for i in list_c:
    i = int(i)
    if i%var_h == var_i:
        list_d.append(i)
var_j = 70
var_k = 34
list_e = [] 
var_j = int(var_j)
var_k = int(var_k)
if var_k < 0:
    var_k = var_k + var_j
for i in list_d:
    i = int(i)
    if i%var_j == var_k:
        list_e.append(i)
var_l = 1
list_f=list_e.copy()
list_f.sort()
var_m = list_f[var_l-1]
print(int(var_m))