The problem in python intermediate in module 4 (logic building in programs )

Describe your bug

I have written correct code and this problem is being faced by me for atleast 1 month please look into it (it has no solution in editorial section )


Additional info

the problem statement is as follows
Assess your performance by solving these problems on your own!

There are
10 problems in a contest. You know that the score of each problem is either
1 or
100 points.

Chef came to know the total score of a participant and he is wondering how many problems were actually solved by that participant.

Given the total score

P of the participant, determine the number of problems solved by the participant. Print

−1 in case the score is invalid.