When tested with the suggested input, my code produces the expected output. However, the code is still wrong, as it does not pass the last requirement. I'm not quite sure why. I understand the problem must be with the last while-loop I have. I might be failing to check for all the possible variations of the input. So, I'd be grateful for criticism and advice.