6. What will be the output of the following code fragment if the input given is (i) 2000 (ii) 1900 (iii) 1991 ?