#include #include #include using namespace std; #define FOR(i, a, n) for (int i = a; i < n; i++) #define REP(i, n) for(int i = 0; i < n; i++) struct omt{omt(){ios::sync_with_stdio(false);cin.tie(0);}}star; int main(){ int a, b; cin >> a >> b; vector A; set st; REP(i, a + 1){ REP(j, b + 1){ int hoge = i + j * 5; if(hoge != 0) st.insert(hoge); } } /* REP(i, A.size()) cout << A[i] << " "; cout << endl; */ for(auto x : st) cout << x << endl; return 0; }