using System; using System.Linq; using System.Collections.Generic; public class Solution { public static void Main() { var n = int.Parse(Console.ReadLine()); long result = 1; for (int i = 2; i < n; i++) { result = (result * i * (i+1)/2)% 1000000007; } Console.WriteLine(result); } }