#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; for(int i=15 ; i<n ; i+=30){ cout<<i<<" "; } return 0; }