#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main(void)
{
int n;
int sum = 0;
int i;
int sign = 1;
scanf("%d", &n);
for (i = 0; i <= n; i++)
{
sum = sum + sign*i;
sign = -sign;
}
printf("%d\n", sum);
return 0;
}
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main(void)
{
int n;
int sum = 0;
int i;
int sign = 1;
scanf("%d", &n);
for (i = 0; i <= n; i++)
{
sum = sum + sign*i;
sign = -sign;
}
printf("%d\n", sum);
return 0;
}