Handling multiple negative numbers