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