(1)
var ans,i,j,m,n:longint;
procedure plus(m:longint);
begin
if m>0 then ans:=ans+n
else exit;
plus(m-1);
end;
begin
while not eof do begin
readln(n,m);
ans:=0;
plus(m);
writeln(ans);
end;
end.
(2)
var ans,i,j,m,n:longint;
procedure multiply(m:longint);
begin
if m>0 then ans:=ans*n
else exit;
multiply(m-1);
end;
begin
while not eof do begin
readln(n,m);
ans:=1;
multiply(m);
writeln(ans);
end;
end.
(3)
var n,s,ans:qword;
i:longint;
begin
ans:=1;
for i:=1 to 64 do ans:=ans*2;
dec(ans);
writeln(ans);
s:=60*60*24*365;
writeln(ans/s:0:2);
readln;
end.