#include int main() { int N,A; scanf("%d", &N); if (N % 2 == 0)A = N; else A = N+3; printf("%d\n", A); return 0; }