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