If A is a square matrix such that A2=A, then write the value of 7A−(1+A)3, where I is an identify matrix.