using System; class ManOrBoy { static void Main() { Console.WriteLine(A(10, () => 1, () => -1, () => -1, () => 1, () => 0)); } static int A(int k, Func x1, Func x2, Func x3, Func x4, Func x5) { Func b = null; b = () => { k--; return A(k, b, x1, x2, x3, x4); }; return k <= 0 ? x4() + x5() : b(); } }