#include <iostream>
using namespace std;
int main(){
int m, n;
while(cin >> m >> n, (m > 0 && n >0)){
int tmp = max(m, n);
int tmp1 = min(m, n);
m = tmp1;
n = tmp;
int sum = 0;
for(int i = m; i <= n; i ++ ){
sum += i;
cout << i << " ";
}
cout << "Sum=" << sum << endl;
}
return 0;
}