#include #include #include #include using namespace std; int main(){ set c{}; int a, b; cin >> a >> b; for ( int i = 0; i < a; i ++ ){ for ( int j = 0; j < b; j++ ){ if ( i+5*j > 0 ) c.insert(i+5*j); } } for ( auto itr = c.begin(); itr != c.end(); ++itr ){ cout << *itr << endl; } return 0; }