#include #include using namespace std; int main(void) { int a, b; cin >> a >> b; set st; for (int i = 0; i < a + 1; ++i) { for (int j = 0; j < b + 1; ++j) { st.insert(i + j * 5); } } for (auto x : st) { if (x != 0) cout << x << endl; } return 0; }