#include
int even(int n)
{return n%2;
}
int main()
{int s=0,x;
scanf("%d",&x);
while(x>0)
{ if(even(x))s+=x;
printf("%d\n",s);
return 0;