A = gets.to_i ans = if A < 15 -1 else A - 7 end puts ans