<?php $n = trim(fgets(STDIN)); if($n % 2 == 1){ echo 1; }else{ echo $n/2; } ?>