#include <iostream>
using namespace std;
const int N = 100010;
bool a[N];
int n;
int main()
{
cin >> n;
int res = n;
bool change = true;
int i = 1;
while (res > 0)
{
while (a[i])
{
i ++;
i = i % (n + 1);
if (i == 0) i = 1;
}
if (change)
{
cout << i <<" ";
a[i] = true;
res --;
}
i ++;
i = i % (n + 1);
if (i == 0) i = 1;
change = !change;
}
return 0;
}