PascalABC.NET
begin
var (a, b, c) := ReadInteger3('a, b, c:');
if (a in range(0,15)) or (b in range(0,15)) or (c in range(0,15)) then
print(sqr(a) + sqr(b) + sqr(c))
else
print((a + b + c) / 3)
end.
PascalABC.NET
begin
var (a, b, c) := ReadInteger3('a, b, c:');
if (a in range(0,15)) or (b in range(0,15)) or (c in range(0,15)) then
print(sqr(a) + sqr(b) + sqr(c))
else
print((a + b + c) / 3)
end.