#include using namespace std; int main(){ int n,ans; cin >> n; if (n % 2 == 0) ans = n; else ans = n + 1; cout << ans << endl; return 0; }