x=[746,16188,13875]*10 n=x[id(0)%3] i=0 while 1: if x[i]:b=i+1+n%2*5;print`i`+','+`b`,;x[b]=0;n/=2 i+=1