f = lambda x,n:int(`x`[1::n+3])%(10**n/2)+10**n/9 print f([92345678,23456789,34567890,45678901,56789012,67890123,78901234,89012345], 8)
Standard input is empty
54690246
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!