#include <bits/stdc++.h>
using namespace std;

int main() {
  int64_t N; cin >> N;
  cout << (N + N % 2) << endl;
  return 0;
}