XY's submission of Petya and Sequence | CodeChef