07. Labyrinth-7
time limit per test
8 seconds
memory limit per test
512 megabytes
input
standard input
output
standard output

See the problem statement here: http://codeforces.net/contest/921/problem/01.