#include <stdio.h>
int main()
{
int sum = 0;
int input = -1;
while (input!=0)
scanf("%d",&input);
if ((input>0)&&(input%2==0)) sum += input;
}
printf("res=%d",sum);
return 0;
#include <stdio.h>
int main()
{
int sum = 0;
int input = -1;
while (input!=0)
{
scanf("%d",&input);
if ((input>0)&&(input%2==0)) sum += input;
}
printf("res=%d",sum);
return 0;
}