program ABC;
var a, b, c: integer;
begin
 writeln (12);
 read (a);
 writeln (24);
 read (b);
 c:=a+b;
 writeln (36);
 writeln (c);
end.