No need to read the whole input when it isn't necessary.