import java.util.Scanner;
public class array {
public static void main(String[]argv){
Scanner sc=new Scanner(System.in);
int score;
while(sc.hasNext()){
score=sc.nextInt();
for(int i=1;i<score;i++){
if(i%7==0)
continue;
System.out.print(i+" ");
}
System.out.println();
}
}
}