Optimised problem 50