June Challenge-- Chef and Icecream Problem

Link to my solution

I basically first wrote full program but it gives wrong answer then I choose to submit only for Subtask 1 but again same, wrong answer.
Can anyone please help me in knowing what is wrong in this?

Please Format Your Code, or link your submission, so that we get a little more information.

I changed the flag definition, you can find your accepted solution here.

It’s difficult to read a python code without indentations. If you’re stuck, please refer my python solution. PS: Post a link to your submission next time or format your code