start_number = int(input())
end_number = int(input())
step_number = int(input())

for i in range(start_number, end_number, step_number):
    print(i)


start_number = int(input())
end_number = int(input())
step_number = int(input())

for i in range(start_number, end_number, step_number):
    print(i)

