#include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define YES cout << "YES\n" #define Yes cout << "Yes\n" #define yes cout << "yes\n" #define NO cout << "NO\n" #define No cout << "No\n" #define no cout << "no\n" #define rep(i,j,n) for(int i=(j);i<(n);i++) #define erep(i,j,n) for(int i=(j);i<=(n);i++) #define all(i) i.begin(),i.end() #define rall(i) i.rbegin(),i.rend() #define INF 1e9 const int mod = 1e9+7; typedef vector vi; typedef vector> vvi; typedef vector vs; typedef vector> vvs; typedef pair pi; typedef long long i64; int main() { int a,b; cin >> a >> b; set st; erep(i, 0, a) { erep(j, 0, b) { if(i + 5*b != 0) st.insert(i + 5*b); } } for(auto ite : st) cout << ite <