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