a = gets.chomp.to_i(10)-7 if a > 7 then puts a else puts -1 end