Loading Can't understand how to solve CHAIN - Strange Food Chain spoj problem :(