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