#include<stdio.h>

int main()
{
    int i =0,sum=0;
    scanf("%d",&i);
    for(int j =1;j<=i;j++)
    {
        if(j%2==0)
            sum-=j;
        else
            sum+=j;
    }
    printf("%d\n",sum);
    return 0;
}