#include <iostream>
using namespace std;
int main() {
int M, N;
while (true) {
cin >> M >> N;
if (M <= 0 || N <= 0) {
break;
}
int min_val = min(M, N);
int max_val = max(M, N);
int sum = 0;
for (int i = min_val; i <= max_val; ++i) {
cout << i << " ";
sum += i;
}
cout << "Sum=" << sum << endl;
}
return 0;
}