Reverted type to input_iterator