$n=<>; if($n%2){ print "1\n"; } else { print $n/2, "\n"; }