Python, beginner(logic building)

There are 100100 questions in a paper.

  • Each question carries +3 marks for correct answer,
  • -1 marks for incorrect answer i.e. one mark is deducted for each incorrect answer,
  • 0 marks for an unattempted question.

It is given that Chef received exactly �X (0≤�≤100)(0≤X≤100) marks.
Determine the minimum number of problems Chef marked incorrect.