#include #include #include #include using namespace std; int main() { int a, b; cin >> a >> b; set s; for (int i = 0; i <= a; i++) { for (int j = 0; j <= b; j++) { if (i + j) s.emplace(i + j * 5); } } for (int si: s) cout << si << endl; return 0; }