You got just a part of the third test...
In the rest of the page theres a code to solve the third test, but its hard
And the code to solve this test and finish sss223 is:
Good luck...