CUC is a wildcard in upgrades as it pretty much works with any version above 9.x
As for CUCM and IM&P they need to be in the same release, and sometimes in the same SU. The documentation you need to read to plan the upgrade will provide all those details.
HTH
java
if this helps, please rate