#include <stdio.h>

int main(){
	
	int i;
	for(i=5;i<=100;i++){
		if(i%5==0 || i%7==0){
			printf("%d ", i);
		}
	}

	return 0;
}