N = gets.to_i

if N % 2 == 0
  puts N / 2
else
  puts 1
end