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