public static int[] mutiplyNumbers(int[] a, int n) {
		int[] res = new int[n];
		int m = 1;
		for(int i = 0; i < n; ++i) {
			res[i] = m;
			m *= a[i];
		}
		m = 1;
		for(int i = n-1; i >= 0; --i) {
			res[i] *= m;
			m *= a[i];
		}
		return res;
	}