03. Labyrinth-3
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.me/contest/921/problem/01.