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