N=int(input()) for _ in range(N): _,_=map(int,input().split()) print(N) print(*range(1,N+1))