program DoLoop(output);
var
i: integer;
begin
for i := 1 to 10 do
write(i);
if i mod 5 = 0 then
writeln;
continue;
end;
write(', ');
end.