#include <iostream>
using namespace std;
int main(void)
{
int n, m;
while (cin >> n >> m) {
if (n <= 0 || m <= 0) break;
if (n > m) {
swap(n, m);
}
int sum = 0;
for (int i = n; i <= m; i++) {
cout << i << ' ';
}
printf("Sum=%d\n", sum);
}
return 0;
}