#AUTHOR:ABHISHEK JADHAV
test_case=int(raw_input())
for k in range(1,test_case+1):
     KK,CC,SS=map(int,(raw_input().split()))
     print "Case #"+str(k)+":",
     for kk in range(1,KK+1):
         print kk,
     print ""
