#include <iostream>
#include <string>
#include <sstream>
#include <cmath>
using namespace std;
int main()
{
int x;
while (cin >> x)
{
for (int i = 1; i < x; i++)
{
if (i % 7 == 0)
{
i = i + 1;
}
cout << i << " ";
}
cout << endl;
}
}