#include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using ll = long long; int main() { int A, B; cin >> A >> B; set vs; for (int i = 0; i <= A; ++i) { for (int j = 0; j <= B; ++j) { if(i == 0 and j == 0) continue; vs.insert(i + 5 * j); } } for (auto v:vs) { cout << v << endl; } return 0; }