f = lambda l, i = 1: f(l[i :: 2], 0 ** i) if l[1:] else l[0]print(f(list(range(1, 12346))))
Standard input is empty
5462
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!