#include using namespace std; int main(){ int a,b; set se; cin >> a >> b; for(int i=0;i<=a;i++){ for(int j=0;j<=b;j++){ se.insert(i+j*5); } } se.erase(se.begin()); for(int x:se) cout << x << endl; return 0; }