Ответ: 24, -16, 17.
//Пруф:
//PascalABC.Net 3.2
begin
var a:=arr(103, 25, 15, 32, 27, 14, 31, 11);
var s1:=0; var s2:=0; var s3:=0;
for var i:=0 to 6 do
begin
s3:=s3+3-A[i+1] div (A[i]-3);
if (A[i]mod 3)=0
then s1:=s1+(A[i]+4) div 2
else s2:=s2-4+A[i+1] mod 5;
end;
print (s1, s2, s3);
end.