Print all pairs sum to M