uses dorand;
var i:integer;
const minlongint=-maxlongint-1;
begin
  regint (92);
  writeln (500);
  for i:=1 to 500 do writeln (minlongint);
  writeln (500);
  for i:=1 to 500 do writeln (minlongint);
end.