#include #include #include #include #include #include #include #define REP(i, n) for(long long i = 0; i < n; ++i) #define ALL(a) a.begin(), a.end() using namespace std; typedef long long ll; typedef pair P; int main() { int a, b; cin>>a>>b; set s; for(int i = 0; i <= a; ++i) { for(int j = 0; j <= b; ++j) { s.insert(i * 1 + 5 * j); } } auto ite = s.begin(); while(ite != s.end()) { if(*ite != 0) cout<<*ite<