#include<bits/stdc++.h>
using namespace std;
int main(){
int n,m;
cin>>n;
for(int i=100;i<=n;i++){
if(i%5==0||i%6==0){
if(i%5>0||i%6>0){
cout<<i<<' ';
}
}
}
}
/**************************************************************
Problem: 2089
User: zhengzihao
Language: C++
Result: Accepted
Time:45 ms
Memory:2072 kb
****************************************************************/