wow, problem 10 is so slow