solved ski-design. brute force