Handle repetitions in the InputFormat