a=scanf(f=" %d");for i=1:length(b=nchoosek(1:a(1),a(2)))disp(num2str(b(i,:),f))end