N = gets.to_i ans = 0 100.times do |t| 0.upto(t) do |g| 100.times do |pg| score = 5 * t + 2 * g + 3 * pg ans += 1 if score == N end end end puts ans