Oleksandr Kulkov's submission of Match the Streams | CodeChef