n=int(input())suma=0for i in range(n): x=int(input()) if x%100==0: suma=suma+xprint(suma)
7 100 22 1000 44 300 123 10
1400
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!