import math import sys # intMaxOver2 = 2147483647 * 100000000000000 n = int(input()) solvememo = [0 for i in range(100001)] def solve(n): if n == 1: return 1 else: if n % 2 == 0: if solvememo[n] != 0: return solvememo[n] else: sum = 0 i = 1 while i < n: sum += solve(i) i = i + 2 solvememo[n] = n * sum return solvememo[n] else: if solvememo[n] != 0: return solvememo[n] else: sum = 0 i = 2 while i < n: sum += solve(i) i = i + 2 solvememo[n] = n * sum return solvememo[n] ans = solve(n) print(ans % 1000000007)