let n = Int(readLine()!)! var a = 0 for i in 0...n{ for j in 0...i{ for k in 0...n{ if 5 * i + 2 * j + 3 * k == n { a += 1 } } } } print(a)