require 'pp'
# IS_DEBUG = true
IS_DEBUG = false
def dputs str
	if(IS_DEBUG)
		puts str
	end
end
def dpp str
	if(IS_DEBUG)
		pp str
	end
end

N,_=gets.chomp.split(' ').map{|n| n.to_i}
k = 1
flg = false
while(k*(k+1) <= 1000000 * 1000000)
	if(N*2 == k*(k-1))
		flg = true
		break;
	end
	k += 1
end
if(!flg)
	puts "No"
	exit(0)
end
A = Array.new(k){|i| Array.new(k-1)}
numbering = 1
for times in 0..(k-1-1)
	for i in times..(k-1-1)
		# pp [times, i+times]
		# pp [i+times+1, times]
		A[times][i] = numbering
		A[i+1][times] = numbering
		numbering += 1
	end
end
puts "Yes"
puts A.size
A.each{|l|
	print l.size
	print " "
	puts l.join(" ")
}
