main(i){while(gets(&i))printf("%d\n",(i=atoi())+1+i%2);}