#include #include #include #include #include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); set st; int a, b; cin >> a >> b; for (int i = 0; i <= a; i++) { for (int j = 0; j <= b; j++) { st.insert(i + j*5); } } for (int x : st) { if (x == 0) continue; cout << x << "\n"; } return 0; }