problem 12
11 code done, wait for judging