I didn't UNDERSTAND the parentheses, but besides that, it works fine. Instead of IV, it will do IIII, and the same for other cases, but I think the rules stated this is fine.
54 blocks.