1)
var a,b:integer;beginreadln (a,b);if (a mod 2 =0) and (b mod 2=0) then writeln (a+b);if (a mod 2<>0) and (b mod 2<>0) then writeln (a-b);end.
2)
var a,b:integer;beginreadln (a,b);if (a+b>1) then writeln (a mod b)elsewriteln (a div 10);end.
1)
var
a,b:integer;
begin
readln (a,b);
if (a mod 2 =0) and (b mod 2=0) then writeln (a+b);
if (a mod 2<>0) and (b mod 2<>0) then writeln (a-b);
end.
2)
var
a,b:integer;
begin
readln (a,b);
if (a+b>1) then writeln (a mod b)
else
writeln (a div 10);
end.