n = int(input())for i in range (1,n+1): l = [] a,b,c = map(int, input().split()) for j in range(a+1,b): if j%c!=0: l.append(j) if len(l)==0: print("No free parking spaces.") else: print(*l)