@@ -0,0 +1,511 @@
+import java.io.*;%0Aimport java.util.*;%0Aimport java.text.*;%0Aimport java.math.*;%0Aimport java.util.regex.*;%0A%0Apublic class ExtraLongFactorials %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner in = new Scanner(System.in);%0A        int n = in.nextInt();%0A        System.out.println(getFactorial(n, BigInteger.ONE));%0A    %7D%0A    static BigInteger getFactorial(int n, BigInteger factorial) %7B%0A%09%09if (n%3E0) %7B%0A%09%09%09factorial=BigInteger.valueOf(n).multiply(getFactorial(n-1, factorial));%0A%09%09%7D%0A%09%09return factorial;%0A%09%7D%0A%7D%0A

Create ExtraLongFactorials.java