#include<iostream>
#include<algorithm>
using namespace std;
int main(){
int x,y;
while(cin>>x>>y){
if(x<=0||y<=0) break;
int sum=0;
if(x>y) swap(x,y);
for(int i=x;i<=y;i++){
sum+=i;
cout<<i<<" ";
}
cout<<"Sum="<<sum<<endl;
}
return 0;
}
注意处理当x或y小于或者等于0时,循环就要停下