// PascalABC.NET
begin
var (a, b, c) := ReadInteger3('Введи три числа:');
if a.IsOdd and b.IsOdd and c.IsOdd then
Print(a + b + c, a * b * c)
else if a.IsEven and b.IsEven and c.IsEven then
Print((a + b + c) / 3)
end.
// PascalABC.NET
begin
var (a, b, c) := ReadInteger3('Введи три числа:');
if a.IsOdd and b.IsOdd and c.IsOdd then
Print(a + b + c, a * b * c)
else if a.IsEven and b.IsEven and c.IsEven then
Print((a + b + c) / 3)
end.