<gh_stars>1-10
#include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main(){
    ll a;
    cin >> a;
    if(a & 1) cout << (a << 1) << endl;
    else cout << a << endl;
    return 0;
}
