Reading the input of Mall Mania

Reading the input of Mall Mania