#include <iostream>
using namespace std;
int main()
{
//可写为
//while (cin >> n >> m, n > 0 && m > 0)
while(true)
{
int a, b;
cin >> a >> b;
if ((a <= 0) || (b <= 0)) break;
if (a > b) swap(a, b);
int sum = 0;
for(; a <= b; a ++)
{
cout << a << " ";
sum += a;
}
cout << "Sum=" << sum << endl;
}
return 0;
}