#include main(){ int N; scanf("%d",&N); if(N%2 == 1){ printf("%d\n",N); }else{ printf("%d\n",N/2); } }