#include using namespace std; using ll = long long; using P = pair; #define rep(i,n) for(int i=0;i> a >> b; set res; for (int i=0;i<=a;i++){ for (int j=0;j<=b;j++){ if (!i && !j) continue; res.insert(i + 5 * j); } } vector ans; for (auto x:res) ans.push_back(x); sort(ans.begin(),ans.end()); rep(i,ans.size()) cout << ans[i] << endl; return 0; }