Wrong answer on Testcase 3

in the problem Chewbacca and number i am getting wa on test 3, kindly review my code.

hi kunal
your code doesn’t work for the case when the input is “9999”
expected output: 9000
your code output: 9999