Fire>Ice. Ice then turns to water which at the tempurature of heat majority of it turns to Steam. Fire > Steam.Fire > Ice. Than Ice turns into water. Water > Fire, Water "shut down" Fire, but Aokiji after that can't control Water (unlike Ice).. So, yeah it cancel each other.