N = gets.to_i if (N.odd? || N % 4 == 0) && ![1, 4].include?(N) puts 1 exit end puts -1