Solved the IO problem in cases #5 and #8, with the a<b>c|d<e>f|g<h>i