NCPC2021 Warmup #5 (remake) Code@LTH