def solve(l): ans = 1 for i in range(1, l + 1): ans *= i * (2 * i - 1) ans %= 1000000007 return ans if __name__ == '__main__': l = int(input().split()[0]) print(solve(l))