#include <stdio.h>int main(){ int n,i,c=0; scanf("%d",&n); while(1<=i && i<=n && i%2==0) { i++; c=c=i; } printf("%d",c); return 0;}