n = int(raw_input()) a = 1 b = 1 while b <= n: a *= b * (2*b - 1) a %= 10**9 + 7 b += 1 print a