public static void main(String[] args) {
		int n = 100;
		int tmpCon = 0;
		Thread newOne;
		List<Thread> tList = new ArrayList<Thread>();
		while (tmpCon + 10 <= n) {
			newOne = new Thread(new FactorialParallel(tmpCon + 1, tmpCon + 10,
					threadCon++));
			tList.add(newOne);
			tmpCon += 10;
		}
		if (tmpCon < n) {
			newOne = new Thread(new FactorialParallel(tmpCon + 1, n, threadCon));
			tList.add(newOne);
		} else {
			threadCon--;
		}

		for (int i = 0; i < tList.size(); i++)
			tList.get(i).start();

		System.out.print(mergeResult());
	}