#include #include using namespace std; #define rep(i,n) for(int i = 0; i < (n); i++) #define fore(i,a) for(auto &i:a) int main(){ sets; int a = 0; cin >> a; int b = 0; cin >> b; rep(i,a+1) rep(j,b+1) s.insert(i + j * 5); fore(i,s) if(i!=0) printf("%d\n",i); return 0; }