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