/*
#include <stdio.h>
#include <string.h>
typedef struct{
int score;
int pnumber;
int cnumber;
}score;
int main()
{
int a, b ,gold=1,silver=1,bronze=1;
score arr[101];
scanf("%d",&a);
for(b=1; b<=a; b++)
{
scanf("%d %d %d",&arr[b].cnumber,&arr[b].pnumber,&arr[b].score);
}
for(b=1;b<=a; b++)
{
if(arr[gold].score<arr[b].score)
{
gold=b;
}
}
printf("%d %d\n",arr[gold].cnumber,arr[gold].pnumber);
arr[gold].score = 0;
for(b=1;b<=a; b++)
{
if(arr[silver].score<arr[b].score)
{
silver=b;
}
}
printf("%d %d\n",arr[silver].cnumber,arr[silver].pnumber);
arr[silver].score = 0;
for(b=1;b<=a; b++)
{
if(arr[silver].cnumber == arr[gold].cnumber)
{
if(arr[b].cnumber==arr[silver].cnumber)
{
arr[b].score=0;
}}
if(arr[bronze].score<arr[b].score)
{
bronze=b;
}
}
printf("%d %d\n",arr[bronze].cnumber,arr[bronze].pnumber);
}
*/
/*
#include <stdio.h>
#include <string.h>
typedef struct{
char name[11];
int s1;
int s2;
int s3;
}score;
int main()
{
int a, b,c=1,d1=1,d2=1,d3=1 ;
score arr[101];
scanf("%d",&a);
for(b=1; b<=a; b++)
{
scanf("%s %d %d %d",arr[b].name ,&arr[b].s1 ,&arr[b].s2 ,&arr[b].s3);
}
for(b=1; b<=a; b++)
{
if(arr[d1].s1<arr[b].s1)
{
d1=b;
}
}printf("%s ",arr[d1].name);
for(b=1; b<=a; b++)
{
if(arr[d1].s2<arr[b].s2)
{
d2++;
}
}printf("%d ",d2);
for(b=1; b<=a; b++)
{
if(arr[d1].s3<arr[b].s3)
{
d3++;
}
}printf("%d ",d3);
}
*/
/*
#include <stdio.h>
#include <string.h>
typedef struct{
char name[11];
int scor;
}score;
int main()
{
int a, b,c,d=1,e;
score arr[101];
scanf("%d %d",&a,&b);
for(c=1; c<=a; c++)
{
scanf("%s %d",arr[c].name ,&arr[c].scor);
}
for(c=1; c<=b; c++)
{
for(e=1; e<=a; e++)
{
if(arr[d].scor<arr[e].scor)
{
d=e;
}
}
printf("%s ",arr[d].name);
arr[d].scor = 0;
}
}
*/
/*
#include <stdio.h>
int n;
f(int n)
{
if(n==0)
{
return;
}
f(n-1);
printf("%d\n",n);
}
int main()
{
scanf("%d",&n);
f(n);
}
*/
/*
#include <stdio.h>
int n;
f(int n)
{
if(n==0)
{
return;
}printf("%d\n",n);
f(n-1);
}
int main()
{
scanf("%d",&n);
f(n);
}
*/
#include <stdio.h>
int a,b;
f(int b)
{
if(b==0)
{
return;
}
f(b-1);
if(b%2==1)
{
printf("%d\n",b);
}
else if(a==1&&b==1)
{
printf("%d",b);
return;
}
}
int main()
{
scanf("%d %d",&a, &b);
f(b);
}