Buying tickets (#405) - Azerbaijan Computing Olympiad