#include <iostream>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
int n;
while(cin>>n)
if((n%2)==1){
cout<<n-1<<endl;}
else{
cout<<n<<endl;}
return 0;
}