The famous restaurant Dolly has announced a competition to fill the vacancy of a chef. Getting into such an establishment is a significant advancement in your career, and you should try to participate in the competition at Dolly's Restaurant Organizing. Contrary to popular belief, a chef is not just someone who prepares food in a restaurant. In fact, he must completely control the entire kitchen, control his subordinates and even the supply of products, because he is the one responsible for the quality of the prepared dishes. You must complete six tasks, some of which will seem strange to you. Each task is given a certain time. If you pick up the wrong tool, you lose six seconds in Dolly's Restaurant Organizing.