uses crt;
var a:array[1..100]of integer;
i,n,dem:integer;
begin
clrscr;
repeat
write('Nhap n='); readln(n);
until n>=10;
a[1]:=10;
i:=1;
while i<=n do
begin
i:=i+1;
a[i]:=a[i-1]+2;
end;
dem:=0;
for i:=1 to n do
begin
write(a[i]:4);
dem:=dem+1;
if dem mod 10=0 then writeln;
end;
readln;
end.