#define _USE_MATH_DEFINES #define _CRT_SECURE_NO_WARNINGS #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; //#include int main() { bool f[1050] = {}; int a, b; cin >> a >> b; for (int i = 0; i <= a; i++) { for (int j = 0; j <= b; j++) { f[i + 5 * j] = 1; } } for (int i = 1; i <= 700; i++)if (f[i])cout << i << endl; return 0; }