#45784: 派森


chen971023@gmail.com (ZiaynGZiyaNG)


n = int(input())

 

for i in range(n):

m = []

a, b, c = map(int, input().split())

for j in range (1, 501):

if (a < j and j < b and j % c != 0):

m.append(f"{j}")

 

if not (m):

print("No free parking spaces.")

else:

print(*m)