There are three consecutive natural numbers A, B, and C. If A is a multiple of 8, B is a multiple of 7, and C is a multiple of 5, find A the smallest of the numbers greater than 1000.
1000 1 [OP_ADD] 9999 1 [OP_LIST_ARANGE] 8 [OP_LIST_DIVISIBLE] 1 [OP_LIST_MIN]
var_a = 1000
var_b = 1
var_c = var_a + var_b
var_d = 9999
var_e = 1
list_a = [i for i in range(var_c, var_d + 1, var_e)]
var_f = 8
list_b = []
var_f = int(var_f)
for i in list_a:
    i = int(i)
    if i % var_f == 0:
        list_b.append(i)
var_g = 1
list_c=list_b.copy()
list_c.sort()
var_h = list_c[var_g-1]
print(int(var_h))