#include using namespace std; int N; void input() { cin >> N; } void solve() { cout << ((N & 1) ? N + 1 : N) << endl; } int main() { ios::sync_with_stdio(false); cin.tie(0); input(); solve(); getchar(); }