11586 - Train Tracks


Difficulty : trivial

Solution Description :

Simple Ad hoc Problem

The answer is "LOOP" iff there is more than 1 piece and the number of
M is equal to the number of F.