The impedance would simply be the voltage across the i(in) current source divided by i(in). Define v(in) to be the voltage across i(in) and the impedance is v(in)/i(in). So all you need to do is come up with an expression for v(in).