case 71 failed: reference failed: runtime error: exit status 2 panic: runtime error: index out of range [-1] goroutine 1 [running]: main.solve.func2(...) /home/ubuntu/codeforces/1000-1999/1800-1899/1860-1869/1868/1868D.go:47 main.solve() /home/ubuntu/codeforces/1000-1999/1800-1899/1860-1869/1868/1868D.go:134 +0xd24 main.main() /home/ubuntu/codeforces/1000-1999/1800-1899/1860-1869/1868/1868D.go:153 +0xb0 input: 1 6 3 0 3 2 3 1 exit status 1