#!/usr/bin/env python3 import random n = int(input()) a = 1 for i in range(n): a = a * (2 * i + 1) * (i + 1) ** 2 % (10 ** 9 + 7) print(a)