Petya and Sequence | CodeChef