Passes all test cases.

Oh sweet jesus