uses crt;
var n,i,t:integer;
begin
clrscr;
readln(n);
t:=0;
for i:=1 to n-1 do
if i mod 2=0 then
begin
write(i:4);
t:=t+i;
end;
writeln;
writeln(t);
readln;
end.
n = int(input())
s = 0
for i in range(1, n):
if i % 2 == 0:
print(i)
s += i
print(s)