//C++
#include <iostream>
using namespace std;
signed main() {
int A, B;
cin >> A >> B;
if (A < B)
for (int i = A; i <= B; i++)
cout << i << " ";
else
for (int i = A; i >= B; i--)
return 0;
}
//C++
#include <iostream>
using namespace std;
signed main() {
int A, B;
cin >> A >> B;
if (A < B)
for (int i = A; i <= B; i++)
cout << i << " ";
else
for (int i = A; i >= B; i--)
cout << i << " ";
return 0;
}