mirror of
https://github.com/tiennm99/codeforces.git
synced 2026-06-09 08:12:21 +00:00
14 lines
235 B
C#
14 lines
235 B
C#
using System;
|
|
|
|
namespace _486A
|
|
{
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
ulong n = ulong.Parse(Console.ReadLine());
|
|
Console.WriteLine(n % 2 == 0 ? (n / 2).ToString() : "-" + ((n + 1) / 2).ToString());
|
|
}
|
|
}
|
|
}
|