fun f (a) { fun g (b) { fun h (c) { return fun (x) {return x + a + b + c} } return h (b) } return g (a) } local x = read (); write (f(10)(5))