n=gets.to_i if n%2==0 then puts n/2 else puts 1 end