package tw.LanYao.myproject.HomeWork;
import java.util.Scanner;
public class printToAll {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sca=new Scanner(System.in);
while(sca.hasNext()){
int num=sca.nextInt();
for(int i=1;i<num;i++){
if(i%7!=0){
System.out.printf("%d ",i);
}
}
System.out.print("\n");
}
sca.close();
}
}