#include <iostream>
#include <fstream>
using namespace std;
ifstream f("pozitiiconsecutive.in");
ofstream g("pozitiiconsecutive.out");
int x,y,urm;
int main()
{
f >> x >> y;
g << y << " " << x;
urm=2*x+2-y;
while (urm>=0)
{
g << " " << urm;
y=x; x=urm;
urm=2*x+2-y;
}
}