#include<stdio.h>
int main()
{
    long long int a,b;
    scanf("%lld",&a);
    if(a%2==0)
    {
        printf("%lld\n",a);
    }
    else if(a%2!=0)
    {
        printf("%lld\n",a*2);
    }
    return 0;
}
