The PDF version of this problem can be downloaded here.
2 5 5 1 3 2 4 1 2 1 2 3 2 3 4 4 2 5 3 5 4 2 4 0 1 2 3 4
7 impossible
Migrated from old NTUJ.
2013 NTU Team Ranking Contest