#include <iostream>
using namespace std;
long long cal(long long n)
{
if(n%2==0)
return n/2;
else
return n/2+(-1)*n;
}
int main()
{
long long n;
cin>>n;
cout<<cal(n);
return 0;
}
#include <iostream>
using namespace std;
long long cal(long long n)
{
if(n%2==0)
return n/2;
else
return n/2+(-1)*n;
}
int main()
{
long long n;
cin>>n;
cout<<cal(n);
return 0;
}