#include <iostream>
using namespace std;
int main()
{
int n ;
int a;
int sum=0;
cin >>n >>a;
if (n<=0 || a<=0){
return 0;
}
int x= min(n,a);
int y=max(n,a);
for(int i =x ; i<=y ;i++){
cout << i << " ";
sum+=i;
}
cout << "sum =" << sum << "\n" ;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkKewoKaW50IG4gOwppbnQgYTsKaW50IHN1bT0wOwpjaW4gPj5uID4+YTsKCmlmIChuPD0wIHx8IGE8PTApewogICAgICAgIHJldHVybiAwOwoKCn0KaW50IHg9IG1pbihuLGEpOwppbnQgeT1tYXgobixhKTsKCmZvcihpbnQgaSA9eCA7IGk8PXkgO2krKyl7CiAgICBjb3V0IDw8IGkgPDwgIiAiOwogICAgc3VtKz1pOwp9Cgpjb3V0IDw8ICJzdW0gPSIgPDwgc3VtIDw8ICJcbiIgOwogICAgcmV0dXJuIDA7Cn0K