Complete macro exp prog with input and output