N = gets.to_i if N.odd? || N % 4 == 0 puts 1 exit end puts -1