print(sum([str(i**3).endswith(str(i)) for i in range(1, 1000)]))
Standard input is empty
25
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!