names = sorted(['img_6568-001', 'img_6563-001','img_6573-001'])
indices = [i for i in range(len(names[0])) if not all(name[i] == names[0][i] for name in names)]
start_num = int(''.join(names[0][i] for i in indices))
end_num = int(''.join(names[-1][i] for i in indices))
pattern = names[0][:indices[0]] + "%d" + names[0][indices[-1]+1:]
all_names = [pattern % i for i in range(start_num, end_num)]
for name in all_names:
print(name)
bmFtZXMgPSBzb3J0ZWQoWydpbWdfNjU2OC0wMDEnLCAnaW1nXzY1NjMtMDAxJywnaW1nXzY1NzMtMDAxJ10pCmluZGljZXMgPSBbaSBmb3IgaSBpbiByYW5nZShsZW4obmFtZXNbMF0pKSBpZiBub3QgYWxsKG5hbWVbaV0gPT0gbmFtZXNbMF1baV0gZm9yIG5hbWUgaW4gbmFtZXMpXQpzdGFydF9udW0gPSBpbnQoJycuam9pbihuYW1lc1swXVtpXSBmb3IgaSBpbiBpbmRpY2VzKSkKZW5kX251bSA9IGludCgnJy5qb2luKG5hbWVzWy0xXVtpXSBmb3IgaSBpbiBpbmRpY2VzKSkKcGF0dGVybiA9IG5hbWVzWzBdWzppbmRpY2VzWzBdXSArICIlZCIgKyBuYW1lc1swXVtpbmRpY2VzWy0xXSsxOl0KYWxsX25hbWVzID0gW3BhdHRlcm4gJSBpIGZvciBpIGluIHJhbmdlKHN0YXJ0X251bSwgZW5kX251bSldCmZvciBuYW1lIGluIGFsbF9uYW1lczoKCXByaW50KG5hbWUp