CODE
#include <iostream>
using namespace std;
int l, r;
int main(void) {
while (scanf("%d %d", &l, &r), l > 0 and r > 0) {
if (l > r) l ^= r, r ^= l, l ^= r;
int s = 0;
for (int i = l; i <= r; ++i) printf("%d ", i), s += i;
printf("Sum=%d\n", s);
}
}