Program Atochka;
var
a,b,c : integer;
o : integer;
count : integer;
begin
write('Введите число a : ');
readln(a);
write('Введите число b : ');
readln(b);
write('Введите число c : ');
readln(c);
if (a+b+c) mod 3 <> 0 then
writeln('None')
else begin
writeln('Операция существует');
o := (a+b+c) div 3;
writeln('Целевая точка = ',o);
count := 0;
if b>o then begin
count := b-o;
b := o;
a:=a+count;
end
else begin
count := o-b;
b := o;
c:=c-count;
end;
count := count + (o-a);
writeln('count of operation : ',count);
end
end.
