#include<cstdio>
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
for(int i = 0;i < 1000;i ++)
{
int m, n;
cin >> m >> n;
if(m > n) swap(m,n);
if(m <= 0 || n <= 0) break;//任意一个数非正则停止输入
int sum = 0;
for(int i = m;i <= n;i ++)
{
cout << i << ' ';
sum += i;
}
cout << "Sum=" << sum << endl;
}
return 0;
}