The remainder when a certain three-digit number is divided by 20 is the same as the remainder when divided by 25. If the remainder is 7, what is the possible largest number of the certain number?
100 999 1 [OP_LIST_ARANGE] 20 7 [OP_LIST_DIVIDE_AND_REMAIN] 25 7 [OP_LIST_DIVIDE_AND_REMAIN] 1 [OP_LIST_MAX]
var_a = 100
var_b = 999
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 20
var_e = 7
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 = 25
var_g = 7
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 = 1
list_d=list_c.copy()
list_d.sort()
var_i = list_d[-var_h]
print(int(var_i))