#include using namespace std; int main(void) { int n; cin >> n; n = ((n + 2) % 2 == 0) ? n : n + 1; cout << n << endl; return 0; }