#include main(){int n;scanf("%d",&n);if(n%2)n--;printf("%d",n);}