# -*- coding: utf-8 -*- import math # solve(2) = 1 * 2 * 3 * 4 / 2 * 2 # solve(3) = 1 * 2 * 3 * 4 * 5 * 6/ 2 * 2 * 2 # solve(4) = 1 * 2 * 3 * 4 * 5 * 6 * 7 * 8 / 2 * 2 * 2 * 2 c = [] def solve2(n): if n == 1: c.append(1) return 1 for k in xrange(len(c), n + 1): #c.append(c[k-1] * k * (k * 2 - 1) % 1000000007) c.append( (c[k-1] * (pow(k,2) * 2 - k)) % 1000000007) return c[n] def solve(n): t = 1 for k in xrange(1, n * 2 + 1): t *= k if k % 2 == 0: t /= 2 t %= 1000000007 return t if __name__ == "__main__": print solve2(int(raw_input()))