#include<iostream>
using namespace std;
int main()
{ int m,n;
for(int i=1;i<=100;i++)
{
cin>>m>>n;
if(m>n)
{
int t;
t=n;n=m;m=t;
}
if(m<=0||n<=0) break;
int sum=0;
for(int s=m;s<=n;s++)
{ sum=sum+s;
cout<<s<<' ';
}
cout<<"Sum="<<sum<<endl;
}
return 0;
}