n[];main(s){while(gets(n)){s=atoi(n);printf("%d\n",s%2==0?s+1:s+2);}}