#include<stdio.h>

int main(void){
    int N;
    scanf("%d",&N);
        while(N%2==0){
            N++;
        }
        printf("%d",N);
        return 0;
    
}