Sayed Atif Ali's submission of Sereja and LCM | CodeChef