#include<stdio.h>

int main(void) {
	int N;
	scanf("%d", &N);
	if (N % 2) {
		printf("%d", N + 1);
	}else {
		printf("%d", N);
	}
}