solutions/max_kaskevich/tasks: put input/output in order with tasks requirement.