Atul Malakar's submission of FIRST | CodeChef