var a,b,c:integer;
begin
read (a,b,c);
if (a mod 3 = 0) or (b mod 3 = 0) or (c mod 3 = 0) then write (a+b+c)
else write (abs(a-b-c))
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
var a,b,c:integer;
begin
read (a,b,c);
if (a mod 3 = 0) or (b mod 3 = 0) or (c mod 3 = 0) then write (a+b+c)
else write (abs(a-b-c))
end.