#include int main() { int N; std::cin >> N; if(N % 2 == 0) { std::cout << N << std::endl; } else { std::cout << N + 1 << std::endl; } return 0; }