solved and accepted 513