Exception on input exhaustion