using System;
public class Program
{
public static void Main()
int bestimmtezahl = Convert.ToInt32(Console.ReadLine());
if(bestimmtezahl % 2 == 0)
bestimmtezahl = bestimmtezahl * 2;
}
Console.WriteLine(bestimmtezahl);