Have correct outputs but out of order. Catch exceptions for inputs < 0.