
echo off
S = 0

for I = 1:1000,
	for J = 1:1000,
		S = S + I*J/666;
	end
end

fprintf('%d\n',S)

quit

