print(sum(x for x in map(int, input().split()) if not x % 2))
1 2 4 5 6 7 8 8
28
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!