Question is not clear

I am not able to understand the question.
Luke Skywalker gave Chewbacca an integer number x. Chewbacca isn’t good at numbers but he loves inverting digits in them. Inverting digit t means replacing it with digit 9 - t.

Help Chewbacca to transform the initial number x to the minimum possible positive number by inverting some (possibly, zero) digits. The decimal representation of the final number shouldn’t start with a zero.

you have to convert the given number into smallest possible number
by inverting the digits of given number
Inverting digit t means replacing it with digit 9 - t.

for example given number is
99953
then min possible number by inverting digits will be
00043 ( inverting 9,9,9,5 )
but you have to print only 43 (The decimal representation of the final number shouldn’t start with a zero.)