using System; class Program { static void Main() { int n = int.Parse(Console.ReadLine()); Console.WriteLine(n % 2 == 0 ? n / 2 : n); } }