For all complex numbers z, let
f(z) = z^2 if z is not real
f(z) = z^3 if z is real
Find f(f(f(f(1+i)))).
(1+i)2=i2+2i+1=−1+2i+1=2i
(2i)2=4i2=4×−1=−4
−43=−64
−643=−262,144