#include <stdio.h>
int main()
{
int n;
scanf("%d",&n);
if(n%2==0)
printf("%d",-n/2);
else
printf("%d",(n+1)/2);//-(n-1)/2+n
return 0;
}
#include <stdio.h>
int main()
{
int n;
scanf("%d",&n);
if(n%2==0)
printf("%d",-n/2);
else
printf("%d",(n+1)/2);//-(n-1)/2+n
return 0;
}