Handle series of number pairs as input