from sys import stdin rs = lambda : stdin.readline().strip() ri = lambda : int(rs()) ril = lambda : list(map(int, rs().split())) def main(): N = ri() ans = 0 for i in range(51): for j in range(34): for k in range(21): t = i * 2 + j * 3 + k * 5 if t == N and i <= k: ans += 1 print(ans) if __name__ == '__main__': main()