established upper limit of len for problem 34